omniauth / omniauth_openid_connect

MIT License
168 stars 187 forks source link

Fix uninitialized constant error #147

Closed stanhu closed 1 year ago

stanhu commented 1 year ago

When decoding a JWT with some error, we need to catch the right error:

JSON::JWS::UnknownAlgorithm => JSON::JWK::UnknownAlgorithm

Relates to https://github.com/omniauth/omniauth_openid_connect/issues/146