scenario 3 - protect and call web api on azure ad b2c - infinite loop
See original GitHub issueIssue
Please provide us with the following information:
This issue is for the sample
- [ ] 1-1) Sign-in with Azure AD
- [ ] 1-2) Sign-in with Azure AD B2C
- [ ] 2-1) Acquire a Token and call Microsoft Graph
- [ ] 3-1) Protect and call a web API on Azure AD
- [x] 3-2) Protect and call a web API on Azure AD B2C
- [ ] 4) Deploy to Azure Storage and App Service
- [ ] 5-1) Call a web API using App Roles
- [ ] 5-2) Call a web API using Security Groups
- [ ] 6-1) Call a multi-tenant web API
- [ ] 7-1) Call Microsoft Graph using on-behalf-of flow
- [ ] 7-2) Call a web API using Proof of Possession tokens
This issue is for a
- [x] bug report -> please search issues before submitting
- [ ] question
- [ ] feature request
- [ ] documentation issue or request
Minimal steps to reproduce
Follow the sample tutorial step by step
Any log messages given by the failure
Expected/desired behavior
I should be able to access the web-api / edit my profile
Library version
Browser and version
Safari?
Mention any other details that might be useful
I can login fine (I had to go to the portal first and configure the sign in policy to allow the user to self reset his password) but then when i click the TodoList button it goes to an infinite loop (looks like login/logout)
https://user-images.githubusercontent.com/2547646/120226164-f5aa2580-c246-11eb-9565-9e3f29b98bd7.mov
here is my repo https://github.com/jeromechrist/repro-step-b2c
Thanks! We’ll be in touch soon.
Issue Analytics
- State:
- Created 2 years ago
- Comments:13 (11 by maintainers)
Top Results From Across the Web
Browser is continously looping after signing in ADB2C
Browser is continously looping after signing in ADB2C. A web app built in .Net Core 3.1 calling a protected custom web API built...
Read more >WebForms App gets into infinite loop post successful Azure ...
I have migrated an existing website to authenticate with Azure AD B2C Sign-in Service. It works perfectly in the local machine (IIS).
Read more >Infinite loop - WPO365.com
Infinite loop. Use this guide to help find the root cause of why the plugin keeps sending you to Microsoft, even though you...
Read more >Azure Active Directory: Protecting Web APIs with Azure AD
Learn best practices about Azure AD B2C and API integration and how to use Azure AD B2C with our quickstarts, tutorials, and samples....
Read more >Trying to automate Azure Active Directory App Registration ...
I'm going to build a pretty common and straightforward scenario using the Terraform provider. The scenario is the following one: Payment API: ...
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 Free
Top 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
@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.Yep, created there https://github.com/AzureAD/microsoft-authentication-library-for-js/issues/3713