Multiple scopes for different apis
See original GitHub issueHello,
Library
-
msal@1.x.x
or@azure/msal@1.x.x
-
@azure/msal-browser@2.x.x
-
@azure/msal-node@1.x.x
-
@azure/msal-react@1.x.x
-
@azure/msal-angular@0.x.x
-
@azure/msal-angular@1.x.x
-
@azure/msal-angular@2.x.x
-
@azure/msal-angularjs@1.x.x
@azure/msal-browser@2.13.0
Framework
- Angular
- React
- Other
Description
We have migrated from 1.4.6 to 2.13.0 because we wanted to switch from implicit auth to auth code flow. I have observed that its not storing multiple access tokens for different scopes in local storage. There is only one and it returns that same access token for different scopes, which is wrong.
Error Message
MSAL Configuration
const msalConfig = { auth: { clientId: appConfig.APPLICATION_CLIENT_ID!, authority: appConfig.AUTHORITY_URL!, redirectUri: window.location.origin, }, }
// Provide configuration values here.
// For Azure B2C issues, please include your policies.
Reproduction steps
// Provide relevant code snippets here.
// For Azure B2C issues, please include your policies.
Expected behavior
Identity Provider
- Azure AD
- Azure B2C Basic Policy
- Azure B2C Custom Policy
- ADFS
- Other
Browsers/Environment
- Chrome
- Firefox
- Edge
- Safari
- IE
- Other (Please add browser name here)
Regression
- Did this behavior work before? Yes in version: 1.4.6
Security
- Is this issue security related? No
Source
- Internal (Microsoft)
- Customer request
Issue Analytics
- State:
- Created 2 years ago
- Reactions:4
- Comments:12 (3 by maintainers)
Top Results From Across the Web
OAuth Scopes Best Practices | Curity
Best practices for designing OAuth scopes in real world systems and managing them at scale. Discover how to perform API Authorization using Scopes....
Read more >Different scopes for multiple APIs - Auth0 Community
Is there any way I can use this library to retrieve a different set of scopes for different APIs that my web app...
Read more >Multiple Scope Values to oauth2 - Stack Overflow
In the google getting started with oAuth2 it works with two scope values. Here is my code : <form id="form1" method="post" ...
Read more >Working with OAuth2 scopes | Apigee Edge
Using the API, you can specify OAuth scopes for the app. App-specific scopes override the master list of scopes taken from the products...
Read more >OAuth 2.0 Scopes for Google APIs | Authorization
This document lists the OAuth 2.0 scopes that you might need to request to access Google APIs, depending on the level of access...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for the info shared here. We’re working with the B2C service to patch or revert a change that was rolled out late last week, ASAP. If you need an immediate resolution, setting
forceRefresh: true
, as mentioned above, is the suggested workaround.All, the server team has notified us that the rollback for this bug completed this afternoon. Closing, but let us know if this is still an issue and we can reopen.
The bug for this was related to a feature to allow refresh tokens to be redeemed for different access tokens. If your application needs to use more than 1 access token and you are receiving a blank access token in the server response please track issue #2315 for that feature. The bug has been fixed and the feature has begun rolling out again.