GithubHelp home page GithubHelp logo

Comments (4)

bampakoa avatar bampakoa commented on June 14, 2024 2

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.

jmprieur avatar jmprieur commented on June 14, 2024

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.

bampakoa avatar bampakoa commented on June 14, 2024

@jmprieur I get the same error with the sample provided here. Below are my steps to reproduce:

  1. Click the login button
  2. The popup shows up and I sign in with my credentials
  3. The popup closes and I notice a small delay (not so large to reason network latency)
  4. The popup shows again and I sign again also.
  5. I get the following error:

image

This is the error that I get after the 1st login attempt:

image

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.

tmarkovski avatar tmarkovski commented on June 14, 2024

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.

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.