All Questions
Tagged with msal.js single-page-application
16
questions
0
votes
1
answer
535
views
Should I try an MSAL getTokenSilent() before any request for a protected resource?
I'm integrated the MSAL JS library with an EmberJS SPA. In the current implementation I have a getTokenSilent() call before a user requests a "protected" resource. This means that after a ...
0
votes
1
answer
861
views
MSAL 2.x returns existing authentication result for a different B2C policy
UPDATE 1 2021-10-24
We are using two different 'classic' sign-in/sign-up policies predating even MSAL 0.15. We don't use custom policies. I believe we can export them using the Manifest for the ...
0
votes
1
answer
500
views
Custom Error Logging in MSAL.js library is not working
We want to log the custom errors which are thrown by MSAL.js library into our Database but somehow we are not able to log it.
The errors are thrown into console. For e.g.
What I understood so far ...
1
vote
1
answer
353
views
Microsoft Authentication Library SPA versus a Web App
TLDR: Which is the correct way to check for login states across multiple web pages, a SPA or a Web App.
I'm looking to develop an internal staff website for a company I'm working with. We currently ...
0
votes
0
answers
34
views
Issue is when I am not using my application for a long time, after come back and when clicking any tab its redirects to the login page using MSAL js
Using MSALjs SPA for refrence.
MSALjs Library
5
votes
1
answer
7k
views
How to Clear the cache token in MSAL SPA?
I have the functionality when the user doesn't accept the Permission ( At the first time login) I am redirecting it to Signin page. Since the token is cached it is constantly showing the Permission ...
7
votes
3
answers
4k
views
Microsoft Authentication React "hash_empty_error" when using loginPopup
I am failing to understand the error that I am getting while trying to authenticate a user with the Micrsoft Authentication library for React (PWA). I need help understanding why it fails when ...
0
votes
1
answer
2k
views
Receiving "AADSTS500031: Cannot find signing certificate" error by requesting Azure Active Directory oAuth2-Token-Endpoint
I am receiving following error by requesting Azure Active Directory oAuth-Token-Endpoint:
AADSTS500031: Cannot find signing certificate configured
I'm using the oauth-flow Authorization_Code.
The ...
0
votes
0
answers
421
views
Azure Authentication MSAL 1.3 - Angular SPA - After login, the application keeps loading forever and doesn't stop
Lately, I deployed an Angular9 SPA on Azure and using MSAL1.3 by following Azure official docs for MSAL. Then once I login, the home screens keeps on loading forever, sometimes it shows error msg and ...
3
votes
0
answers
2k
views
Is it possible to implement switch account feature using msal.js for SPA website?
I am trying to implement switch account feature for my SPA website. I am able to login an account that matches the current user that launched the browser. But if i prompt for account selection and ...
1
vote
1
answer
307
views
On what trigger can I get an id_token silently via msalObj.acquireTokenSilent() method of MSAL?
What are the various ways of setting the trigger for msalObj.acquireTokenSilent() so that it gets called when the id_token stored in the local storage expires?
I had tried calling the function by ...
0
votes
1
answer
564
views
MSALjs with Single Page App makes debugging impossible
I'm not sure how to explain this succinctly, first part, Implicit flow. I don't exactly understand what implicit flow is. I haven't distilled it down in to a single sentence. Is it a design pattern or ...
2
votes
1
answer
3k
views
Multiple user sessions with SPA using MSAL
I have had a scenario come across a few times now where I require Password Grant flow in my SPA apps.
For example, one user is logged into my single-page-application (SPA) using MSALjs. All API’s ...
0
votes
1
answer
370
views
Msal with RequireJS
Curious if anyone has used MSALjs with RequireJS. I seem to be stuck getting the exports to register correctly. I can see the msal.js file is loaded in both the Visual Studio IDE and the Chrome ...
0
votes
0
answers
773
views
using react-azure-adb2c when I want to redirect after login I get state mismatch and see a blank page, how to fix that?
Using Custom policies and react-azure-adb2c(https://www.npmjs.com/package/react-azure-adb2c) and SPA in reactjs, the issue is after login (using separate custom policy)I get successfully loggen in, ...