GithubHelp home page GithubHelp logo

Comments (5)

Tzvetelin88 avatar Tzvetelin88 commented on June 9, 2024

I think this is the answer?

Important

MSAL.js 2.0 does not currently support Azure AD B2C for use with the PKCE authorization code flow. At this time, Azure AD B2C recommends using the implicit flow as described in Tutorial: Register an application. To follow progress on this issue, see the MSAL.js wiki.

from ms-identity-javascript-v2.

derisen avatar derisen commented on June 9, 2024

@Tzvetelin88 thanks for bringing this up -this needs updating. At the moment, Azure AD Powershell moudle does not allow to creating an application as "Single-page Application" (platform), which breaks the PKCE. So the registration script is not usable right now (with msal 2.x apps -1.x apps are fine).

from ms-identity-javascript-v2.

Tzvetelin88 avatar Tzvetelin88 commented on June 9, 2024

Thanks, I see.
So, should I remove checkboxes from Access Tokens and ID tokens from section Implicit grant?
Further more I will check Azure documentation for SAP creation, which I think is here: https://docs.microsoft.com/en-us/azure/active-directory/develop/scenario-spa-app-registration#redirect-uri-msaljs-20-with-auth-code-flow

and I have one last question about redirect URI. If I'm using React, should I specify Redirect URI like http://localhost:3000/auth, where auth is a blank page or I need only http://localhost:3000/ ?

Thanks!

from ms-identity-javascript-v2.

derisen avatar derisen commented on June 9, 2024

You're welcome : ) That right, for the moment please follow the steps here. A new Azure AD powershell module has been released yesterday and we are investigating if this is now supported.

Regarding your redirect uri question: both of them should be fine. There's a react sample here that you might find useful.

from ms-identity-javascript-v2.

derisen avatar derisen commented on June 9, 2024

Will keep this open until the ps script is updated.

from ms-identity-javascript-v2.

Related Issues (18)

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.