Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for multiple tokens in native auth flows #2390

Merged
merged 12 commits into from
May 23, 2024
Merged

Conversation

SaurabhMSFT
Copy link
Contributor

@SaurabhMSFT SaurabhMSFT commented Apr 19, 2024

This PR and its companion PR (AzureAD/microsoft-authentication-library-for-android#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 SammyO changed the title First draft of the multiple token Support for multiple tokens in native auth flows May 15, 2024
@SammyO
Copy link
Contributor

SammyO commented May 15, 2024

@SaurabhMSFT can you add a change log?

@SaurabhMSFT SaurabhMSFT marked this pull request as ready for review May 15, 2024 14:51
@SaurabhMSFT SaurabhMSFT requested review from a team as code owners May 15, 2024 14:51
@SaurabhMSFT SaurabhMSFT added the Skip-Consumers-Check Only include this if making a breaking change purposefully, and there is an MSAL/ADAL/Broker PR label May 15, 2024
@SaurabhMSFT SaurabhMSFT merged commit ea869b0 into dev May 23, 2024
13 checks passed
SaurabhMSFT added a commit to AzureAD/microsoft-authentication-library-for-android that referenced this pull request May 23, 2024
This PR and its companion PR
(AzureAD/microsoft-authentication-library-common-for-android#2390)
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Skip-Consumers-Check Only include this if making a breaking change purposefully, and there is an MSAL/ADAL/Broker PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants