Skip to content

Allow deserializing unknown key type JWKs - #530

Merged
Keats merged 1 commit into
Keats:masterfrom
arckoor:unknown-jwk-deser
Jul 24, 2026
Merged

Allow deserializing unknown key type JWKs#530
Keats merged 1 commit into
Keats:masterfrom
arckoor:unknown-jwk-deser

Conversation

@arckoor

@arckoor arckoor commented Jul 24, 2026

Copy link
Copy Markdown
Collaborator

Also makes some more enums #[non_exhaustive], we might add new Algorithms soon (e.g. #478).
Closes #529

@arckoor
arckoor requested a review from Keats July 24, 2026 09:38
Comment thread src/decoding.rs
kind: DecodingKeyKind::SecretOrDer(out),
})
}
AlgorithmParameters::Other(_) => Err(ErrorKind::UnsupportedAlgorithm.into()),

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would nice to have a value in ErrorKind::UnsupportedAlgorithm but probably not a blocker

Comment thread src/jwk.rs
/// The function to use to hash the intermediate thumbprint data.
#[derive(Debug, Clone, Eq, PartialEq)]
#[allow(missing_docs)]
#[non_exhaustive]

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can there be other?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not that I'm aware of currently, but I for one would appreciate a future capability of using SHA-3

@Keats
Keats merged commit 6aac5ae into Keats:master Jul 24, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

JwkSet deserialization fails the whole set on an unknown kty (RFC 7517 §5)

2 participants