-
-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Skip unrecognized algorithms and keys in provider metadata
Previously, this crate would return a deserialization error if it encountered any unrecognized signature or encryption algorithms in the `ProviderMetadata` and `JsonWebKeySet`. This patch changes the behavior to instead ignore unexpected values, with the aim of improving compatibility with OIDC providers that support other algorithms but don't necessarily use them to sign JWTs. This change focuses on the signing/encryption enums since those are difficult to override via type parameters due to the interdependence between the key and algorithm traits/types.
- Loading branch information
Showing
5 changed files
with
359 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "openidconnect" | ||
version = "2.4.1" | ||
version = "2.5.0" | ||
authors = ["David A. Ramos <[email protected]>"] | ||
description = "OpenID Connect library" | ||
license = "MIT" | ||
|
@@ -44,6 +44,7 @@ serde_derive = "1.0" | |
serde_json = "1.0" | ||
serde_path_to_error = "0.1" | ||
serde_plain = "1.0" | ||
serde_with = "1.13" | ||
serde-value = "0.7" | ||
url = { version = "2.1", features = ["serde"] } | ||
num-bigint = "0.4.3" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.