-
Notifications
You must be signed in to change notification settings - Fork 23
Drop jsonwebtoken dependency #94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 1 commit
bdd21e1
582a3d5
b786c5c
0a62f3f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,18 +5,20 @@ edition = "2021" | |
| rust-version.workspace = true | ||
|
|
||
| [features] | ||
| jwt = [ "jsonwebtoken", "serde" ] | ||
| jwt = [ "base64", "serde", "serde_json", "rsa" ] | ||
| sigs = [ "bitcoin_hashes", "hex-conservative", "secp256k1" ] | ||
|
|
||
| [dependencies] | ||
| async-trait = "0.1.77" | ||
| api = { path = "../api" } | ||
| jsonwebtoken = { version = "9.3.0", optional = true, default-features = false, features = ["use_pem"] } | ||
| serde = { version = "1.0.210", optional = true, default-features = false, features = ["derive"] } | ||
|
|
||
| async-trait = "0.1.77" | ||
| base64 = { version = "0.22.1", optional = true, default-features = false, features = ["std"] } | ||
| bitcoin_hashes = { version = "0.19", optional = true, default-features = false } | ||
| hex-conservative = { version = "1.0", optional = true, default-features = false } | ||
| rsa = { version = "0.9.10", optional = true, default-features = false, features = ["sha2"] } | ||
| secp256k1 = { version = "0.31", optional = true, default-features = false, features = [ "global-context" ] } | ||
| serde = { version = "1.0.210", optional = true, default-features = false, features = ["derive"] } | ||
| serde_json = { version = "1.0.149", optional = true, default-features = false, features = ["std"] } | ||
|
|
||
| [dev-dependencies] | ||
| jsonwebtoken = { version = "9.3.0", default-features = false, features = ["use_pem"] } | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If we already keep it as a dev dependency, can we add some parity/backwards compat tests that ensure our new custom implementation behaves the same way as this did? |
||
| tokio = { version = "1.38.0", default-features = false, features = ["rt-multi-thread", "macros"] } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We already have
opensslin our tree - I do wonder if we could useopenssl::rsa(https://docs.rs/openssl/latest/openssl/rsa/index.html) rather than this additional dependency?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you yes great idea