ramosbugs / openidconnect-rs

OpenID Connect Library for Rust
MIT License
404 stars 100 forks source link

Core JWK use type to ignore unknown use types #92

Closed Alexei-Barnes closed 1 year ago

Alexei-Barnes commented 1 year 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 1 year ago

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