TheNetworg / oauth2-azure

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

Add method to retrieve raw `id_token` from `AccessToken` object #144

Closed JoshuaLicense closed 2 years ago

JoshuaLicense commented 3 years ago

It would be convenient to be able to retrieve the id_token raw string directly from the AccessToken object (consistent with other methods: getToken() & getRefreshToken()).

Before:

$token->getValues()['id_token'];

After:

$token->getIdToken();

Note: afe3b06 (unsetting from $this->values) is a breaking change - I'm happy to revert this if needed.