ramosbugs / openidconnect-rs

OpenID Connect Library for Rust
MIT License
427 stars 103 forks source link

Core JWK use type to ignore unknown use types #92

Closed Alexei-Barnes closed 2 years ago

Alexei-Barnes commented 2 years ago

This is to comply with RFC 7517, Section 4: "Additional members can be present in the JWK; if not understood by implementations encountering them, they MUST be ignored"

Some providers have keys with uses that don't apply to our use case, this change enables us to ignore them gracefully.

This should fix #91 for the simple case.

ramosbugs commented 2 years ago

Thanks! I pushed an alternative in c25eb06ba7e64e14cb94d34a564d77a4ff4e9d1b that captures the string value.