Comments (4)
Just to let you know, after some digging, we found out that it was a scope problem. b2cScopes
was not set correctly in applicationConfig
. Specifically, we set it to the clientID
value and it worked.
from microsoft-authentication-library-for-js.
Hi @hkamel, were you able to check if this was due to network latencies as discussed? Closing this for now. Feel free to re-open.
from microsoft-authentication-library-for-js.
@jmprieur I get the same error with the sample provided here. Below are my steps to reproduce:
- Click the login button
- The popup shows up and I sign in with my credentials
- The popup closes and I notice a small delay (not so large to reason network latency)
- The popup shows again and I sign again also.
- I get the following error:
This is the error that I get after the 1st login attempt:
and this is the console error:
Refused to display 'https://login.microsoftonline.com/pxb2c.onmicrosoft.com/oauth2/v2.0/authori…....&domain_hint=organizations' in a frame because it set 'X-Frame-Options' to 'deny'.
from microsoft-authentication-library-for-js.
Just to let you know, after some digging, we found out that it was a scope problem.
b2cScopes
was not set correctly inapplicationConfig
. Specifically, we set it to theclientID
value and it worked.
But "b2cScopes" shouldn't be set to clientID. Nowhere in the documentation is this pointed. I ran into the same issue and oddly it worked when I set the b2cScopes to clientId.
The problem only happened when I used Facebook authentication and not username/password.
from microsoft-authentication-library-for-js.
Related Issues (20)
- LoginPopup and LoginRedirect not Working HOT 2
- ManagedIdentityTokenResponse's expires_in is not calculated correctly
- Managed Identity - add logs showing which MSI implementations were tried and why they are not available HOT 1
- Managed Identity - failed network request returns wrong error type
- MSAL 3.0 not returning accounts in Angular 17 after upgrading from 2.16.0 HOT 2
- Angular 17 Standalone MSAL Angular v3 Sample Doesnt work and Documentation is wrong HOT 1
- msal browser sample VanillaJSTestApp2.0 fails with ADFS HOT 2
- MsalContext accounts contains incorrect for authenticated user HOT 1
- The MSAL Interceptor finds invalid resources from the endpoint if another match is found in "QueryString". HOT 2
- sample fails at npm start: Angular 16 MSAL Angular v3 Sample: Cannot find module '@azure/msal-browser' HOT 2
- Error: Uncaught (in promise): InteractionRequiredAuthError: interaction_required: AADB2C90077: User does not have an existing session and request prompt parameter has a value of 'None'. HOT 2
- [Supportability Bug] Deprecate WithClientAssertion(string) as it leads to assertion expiration issues HOT 1
- sample "Angular 16 MSAL Angular v3 Sample" configured for ADFS logs event "msal:loginFailure" HOT 3
- sample "Angular 17 Standalone MSAL Angular v3 Sample" fails to build: Cannot set properties of null (setting 'parent'), Lifecycle script `postinstall:msal-angular` failed, etc.
- Custom state leads to error after upgrading to 3.14.0
- Support for Angular 18 HOT 1
- Issue with Password Reset Redirect Loop in MSAL Browser for B2C Users
- Getting AADB2C90079 after B2C login portal returns to app HOT 1
- Angular SSR support
- Improve exception messages for loadExternalTokens
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 microsoft-authentication-library-for-js.