Comments (13)
@jeromechrist looks like the app is never receiving an access token from B2C, which causes the loop as acquireTokenRedirect
keeps trying. For a start, can you double check if you have granted admin consent to permissions on Azure AD B2C portal (SPA app registration)? I've just realized this step is missing in registration steps -apologies for that.
from ms-identity-javascript-angular-tutorial.
@jeromechrist thank you very much for the details and the repro link, I was able to reproduce the issue. I'll get back to you as soon as I figure this out.
from ms-identity-javascript-angular-tutorial.
I just clicked that grant permission button and I can access the APIs feature fine.
But there is still a loop when I click on "Edit Profile"
Screen.Recording.2021-06-02.at.00.04.35.mov
from ms-identity-javascript-angular-tutorial.
hey @derisen, sorry for the delay, just for the heck of it I tried another browser and it looks like this bug is happening on Safari only, no issues on Edge (dev channel)
on Safari the bug repro is 100%
Screen.Recording.2021-06-03.at.21.13.49.mov
Safari
- Version 14.1.1 (16611.2.7.1.4)
- I have an adblocker (ADGUARD) but I turned it off specifically for this test
Edge
- Version 92.0.902.2 (Official build) Dev(x86_64)
- I have an adblocker (uBlock Origin), didn't turned it off
Mac OS
- 11.4 (20F71)
from ms-identity-javascript-angular-tutorial.
Yep, created there AzureAD/microsoft-authentication-library-for-js#3713
from ms-identity-javascript-angular-tutorial.
@jeromechrist strange, I can reproduce this with the edit user-flow you've set up, but not with my edit user-flow. I'm suspecting this is to do with your configuration. Have you configured any user attributes and/or application claims? It might be that there is no attribute/claim to edit, which might cause the edit screen not show up at all.
from ms-identity-javascript-angular-tutorial.
@derisen yep that was the case, I did selected claims in "Application claims" but no in "User attributes". After setting a few it works !
Thank you for helping troubleshoot the issue
from ms-identity-javascript-angular-tutorial.
@jeromechrist awesome! I'll update the sample README with the missing admin consent step and add some remarks about setting up user claims. Really appreciate all the details you provided in the issue -makes our lives easier : )
from ms-identity-javascript-angular-tutorial.
@derisen heyyyyy sorry, it did resolve the edit profile part but the loop is back on the API 😕
Screen.Recording.2021-06-02.at.16.07.42.mov
from ms-identity-javascript-angular-tutorial.
@jeromechrist hmm, I'll check this with B2C team and get back to you. In the meantime, can you send me a network trace using Fiddler? My email is on my GitHub profile.
from ms-identity-javascript-angular-tutorial.
@jeromechrist Ok, I've just tested this on a Mac with Safari and I can reproduce it as well.
At this point, it would be best to raise this issue in the main MSAL.js repo, as this is likely to do with the msal-angular itself rather than the sample. I can't seem to transfer it, can you please create a bug report there?
from ms-identity-javascript-angular-tutorial.
This issue has not seen activity in 14 days. If your issue has not been resolved please leave a comment to keep this open. It will be closed in 7 days if it remains stale.
from ms-identity-javascript-angular-tutorial.
This issue has been closed due to inactivity. If this has not been resolved please open a new issue. Thanks!
from ms-identity-javascript-angular-tutorial.
Related Issues (20)
- When using the MSALGuard and RoleGuard on a route, the Role guard will allow access even if the user does not have the correct role HOT 22
- MSAL redirect Login When click public action Controller
- Forget passeword returns with AADB2C error code HOT 5
- Document recommend approach for calling web API using PoP tokens HOT 2
- API Issue - 500 Error HOT 4
- Group claims not added HOT 5
- Use Angular's own router when handling redirect response HOT 16
- Refactor component to handle claims challenge HOT 15
- Documentation is outdated HOT 5
- How to maintain multiple ClientID's in Multitenant scenario with Vendor, Customers and a Microsft Tenant HOT 8
- How to handle access_denied: AADB2C90091: The user has cancelled entering self-asserted information. HOT 4
- Angular router.navigate not working inside a subscribe of acquireTokenSilent or loginPopup HOT 9
- "Call a web API using App Roles" does not use separate App Registrations for API and SPA HOT 2
- Need different scopes based on which page is being accessed HOT 2
- After login, need another layer of Admin approval when trying to access API HOT 2
- Can't call MS Graph using Azure B2C app id HOT 1
- Help with Error : IDX10503: Signature validation failed. The token's kid is: 'MYKEYID', but did not match any keys in TokenValidationParameters or Configuration. Keys tried
- how to enables CAE in Azure
- I want to add Check for User login whether B2C user is present I my DB then only want to do successful login ?
- Error when starting application: Unsupported digital envelope routines: [DEP0111] DeprecationWarning: Access to process.binding('http_parser') is deprecated. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ms-identity-javascript-angular-tutorial.