jwt: added key rsa key generation, import/export, jwk as PS256

This commit is contained in:
Philippe Loctaux 2023-03-12 13:59:14 +01:00
parent e1ec84f7c6
commit 44506422e9
14 changed files with 334 additions and 1 deletions

15
crates/jwt/Cargo.toml Normal file
View file

@ -0,0 +1,15 @@
[package]
name = "jwt"
version = "0.0.0"
edition = "2021"
[dependencies]
jwt-compact = { version = "0.6.0", features = ["with_rsa"] }
thiserror = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
rand = "0.8.5"
rsa = "0.7.2"
# local crates
id = { path = "../id" }