live_kit_server: Replace jwt with jsonwebtoken (#15302)

This PR replaces `live_kit_server`'s usage of `jwt` with `jsonwebtoken`.

`jwt` hasn't been updated in 2 years and seems unmaintained.

`jsonwebtoken` has significantly more downloads and appears to be a
healthier crate overall.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2024-07-26 17:20:01 -04:00 committed by GitHub
parent 27f97ba762
commit 03ebbcbef6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 47 additions and 23 deletions

42
Cargo.lock generated
View file

@ -5843,18 +5843,18 @@ dependencies = [
]
[[package]]
name = "jwt"
version = "0.16.0"
name = "jsonwebtoken"
version = "9.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6204285f77fe7d9784db3fdc449ecce1a0114927a51d5a41c4c7a292011c015f"
checksum = "b9ae10193d25051e74945f1ea2d0b42e03cc3b890f7e4cc5faa44997d808193f"
dependencies = [
"base64 0.13.1",
"crypto-common",
"digest",
"hmac",
"base64 0.21.7",
"js-sys",
"pem",
"ring",
"serde",
"serde_json",
"sha2",
"simple_asn1",
]
[[package]]
@ -6275,15 +6275,13 @@ version = "0.1.0"
dependencies = [
"anyhow",
"async-trait",
"hmac",
"jwt",
"jsonwebtoken",
"log",
"prost",
"prost-build",
"prost-types",
"reqwest",
"serde",
"sha2",
]
[[package]]
@ -7540,6 +7538,16 @@ version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "19b17cddbe7ec3f8bc800887bab5e717348c95ea2ca0b1bf0837fb964dc67099"
[[package]]
name = "pem"
version = "3.0.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8e459365e590736a54c3fa561947c84837534b8e9af6fc5bf781307e82658fae"
dependencies = [
"base64 0.22.0",
"serde",
]
[[package]]
name = "pem-rfc7468"
version = "0.7.0"
@ -9777,6 +9785,18 @@ version = "1.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1ad1d488a557b235fc46dae55512ffbfc429d2482b08b4d9435ab07384ca8aec"
[[package]]
name = "simple_asn1"
version = "0.6.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "adc4e5204eb1910f40f9cfa375f6f05b68c3abac4b6fd879c8ff5e7ae8a0a085"
dependencies = [
"num-bigint",
"num-traits",
"thiserror",
"time",
]
[[package]]
name = "simplecss"
version = "0.2.1"