Comments (5)
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.
@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.
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.
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.
Will keep this open until the ps script is updated.
from ms-identity-javascript-v2.
Related Issues (18)
- Protecting my own Web API? HOT 2
- 401 even with a valid token HOT 5
- Issue with AADSTS7000218 - 'client_assertion' or 'client_secret'. HOT 1
- Not working due to bug in msal-browser.js 2.3.1 HOT 1
- Path to index.html is wrong and updating it results in javascript errors. HOT 2
- IE11 ES6 Syntax Error for => HOT 4
- showWelcomeMessage wrong argument ?? HOT 1
- Got error in console for cors HOT 2
- Access to fetch from origin has been blocked by CORS HOT 19
- Configuration script registers a web app; needs to register a SPA HOT 2
- "type:cors, status: 200 ok" response from graph endpoint HOT 2
- on login -> not getting code back in the response on signIn (getting accessToken back instead) HOT 1
- Is the AccessToken supposed to be Version 1? HOT 2
- TS2322: Type 'string | undefined' is not assignable to type 'string' HOT 4
- No authentication after redirect HOT 1
- The reference document link in README.md is Implicit grant flow. HOT 2
- Cannot seem to get the configuration to work HOT 3
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-v2.