ms-identity-b2c-javascript-spa | Vanilla JavaScript single-page application | Azure library
kandi X-RAY | ms-identity-b2c-javascript-spa Summary
kandi X-RAY | ms-identity-b2c-javascript-spa Summary
This sample demonstrates a vanilla JavaScript single-page application (SPA) that lets users authenticate against Azure Active Directory B2C (Azure AD B2C) using the Microsoft Authentication Library for JavaScript (MSAL.js) and authorize them to call a web API that is also protected by Azure AD B2C. This sample also demonstrates sign-up/sign-in, password reset and profile edit user-flows.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ms-identity-b2c-javascript-spa
ms-identity-b2c-javascript-spa Key Features
ms-identity-b2c-javascript-spa Examples and Code Snippets
Community Discussions
Trending Discussions on ms-identity-b2c-javascript-spa
QUESTION
First, I am not finding Vue specific examples using MSAL 2.x and we'd like to use the PKCE flow. I am having issues with the way the router guards are run before the AuthService handleResponse so I must be doing something wrong.
In my main.js I am doing this...
...ANSWER
Answered 2021-Mar-26 at 17:49As part of the MSAL auth request, send a state
Parameter. Base64 encode where the user left off inside this parameter. MSAL exposes extraQueryParameters
which you can put a dictionary object inside and send in the auth request, put your state
Key value pair into extraQueryParameters
.
The state
param will be returned in the callback response, use it to send the user where you need to.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ms-identity-b2c-javascript-spa
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page