AzureAD / microsoft-authentication-library-common-for-android

Common code used by both the Active Directory Authentication Library (ADAL) and the Microsoft Authentication Library (MSAL)
MIT License
41 stars 35 forks source link

Support for multiple tokens in native auth flows #2390

Closed SaurabhMSFT closed 5 months ago

SaurabhMSFT commented 6 months ago

This PR and its companion PR (https://github.com/AzureAD/microsoft-authentication-library-for-android/pull/2082) enables multiple access token support for Native Auth. A pair of new method have been added in the AccountState class to allow developer to retrieve different access tokens according to the requested scopes. The way these methods acquire tokens is exactly as same as the one in MSAL. The old method 'getAccessToken''s functionality hasn't been changed. It still returns the access token matching the default OIDC scope. This method though has been deprecated. Two classes that have become unused have been removed.

SammyO commented 5 months ago

@SaurabhMSFT can you add a change log?