auth0 / omniauth-auth0

OmniAuth strategy to login with Auth0
MIT License
125 stars 67 forks source link

Add ID token validation #62

Closed joshcanhelp closed 6 years ago

joshcanhelp commented 6 years ago

This PR adds ID token validation to the basic OmniAuth-Auth0 strategy. The main strategy was not altered in any way functionally except to add this validation (minor docs additions and minor formatting). The main work for this PR is in the new OmniAuth::Auth0::JWTValidator class.

This uses the Ruby JWT library and validates the following:

esarafianou commented 6 years ago

LGTM from a security perspective