TheNetworg / oauth2-azure

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

Handle empty ID token claim #174

Closed janklan closed 1 year ago

janklan commented 1 year ago

AccessToken::getIdTokenClaims() can return null, but Azure::getRootMicrosoftGraphUri() expected an array. This caused array_key_exists(): Argument #2 ($array) must be of type array, null given error when the access token had no claims.