TheNetworg / oauth2-azure

Azure AD provider for the OAuth 2.0 Client.
https://packagist.org/packages/thenetworg/oauth2-azure
MIT License
231 stars 109 forks source link

Fix validation error in 'validateTokenClaims' method for accessToken version 2 #210

Open Keized opened 7 months ago

Keized commented 7 months ago

This bug causes a validation error in the 'validateTokenClaims' method if the user forgets to set the 'default_endpoint_version' option to '2' and uses an accessToken version 2.