All Questions
Tagged with msal.js msal-angular
27
questions
0
votes
1
answer
91
views
Cannot authenticate with SSO between multiple web apps with Azure B2C and MSAL.js Angular
We are building multiple web applications that use Azure B2C user flows for authentication. They are hosted on our servers within the same domain, but different subdomains to differentiate them. The ...
0
votes
0
answers
92
views
Azure angular msal/browser package is opening blank popup when trying to log into teams
I am using Angular 12. This uses "@azure/msal-angular": "^2.0.0" and "@azure/msal-browser": "^2.14.2" packages. This has been working fine for the last 2 years. ...
0
votes
1
answer
92
views
Encounter CROS error while trying to get key vault secrets in my Angular app(using Msal.js)
I am trying to get key vault secrets in my Azure account. I am using Msal.js for that. I can successfully log in to my app with azure but while I am trying to get secret. Here is my function to get ...
0
votes
0
answers
77
views
MSAL authentication in Angular Logout redirect problem
Working on angular app with MSAL authentication and configured it with MSAL config factory and implemented in providers of the app module. I have provided a post logout redirect uri in the ...
0
votes
0
answers
90
views
AADB2C90085 error every time user is redirected to applicaiton
We are using custom policies for user flow for our app. Every time when user completes the flow, they are redirected back to /setting page from where the policy was actually triggered. However, every ...
0
votes
0
answers
33
views
Can Angular interceptors hook into GET requests defined in the template of the Angular component? [duplicate]
Problem context
Our team is building an enterprise content management system.
The content management system will include images that will need to be protected by user security.
Most HTTP requests are ...
3
votes
0
answers
244
views
Redirecting to Microsoft account selection after logout, how to skip Microsoft account popup and directly redirect to logout?
I'm currently facing an issue with the logout functionality in my web application. After clicking on the logout button, instead of immediately redirecting to the logout page, I'm being redirected to a ...
2
votes
0
answers
667
views
show the Microsoft Login page instantly when using msal for angular
MSAL library is used with Angular 15, every controller is protected with the MsalGuard in the app-routing file as follows:
const routes: Routes = [
{
path: 'protected-component',
component: ...
0
votes
1
answer
413
views
The app is asking for consent twice in "app calls api" scenario
I'm using two app registrations and implement the "expose an api" scenario. My CLIENT_APP is an angular application using msal-angular library. My SERVER_APP is a .NET server that's using &...
0
votes
1
answer
597
views
LoginRedirect with prompt='create' not working in Angular Msal
I am trying to redirect the user directly to the sign-up (user creation) flow. Following the MS docs it should be possible by specifying prompt="create".
https://learn.microsoft.com/en-us/...
0
votes
1
answer
889
views
The nodejs console application fails to obtain an AD token while a similar .NET app does not
I have the following configuration in place (the actual values are masked) in a .NET 6.0 console application that obtains AD tokens successfully:
{
"Tenant": "MASKED", //this is ...
0
votes
1
answer
925
views
Upgrading from Azure MSAL to MSAL 2.0
Trying to upgrade from the @Azure/MSAL library to the latest v2 of MSAL.js 2.0 but getting the following error:
Network request failed: If the browser threw a CORS error, check that the redirectUri is ...
4
votes
1
answer
7k
views
How to redirect a user when the access token expires in MSAL for Angular?
I want to make sure that the user of a Single Page Application gets redirected back to the login page when the access token expires.
As far as I understand MSAL automatically refreshes the access ...
1
vote
0
answers
423
views
MSAL redirects when web api is called in Angular Application
I am using B2c with an Angular application hosted in Azure Storage Static Website and an Angular functions application.
Using the code below I can see that I appear to be logged in. Where isLoggedIn = ...
2
votes
1
answer
8k
views
MSAL - MsalGuard on Redirect URI - getting into redirect loop
I'm implementing msal in my angular application and I'm using msal-v1 library.
I have taken angular-7 sample from the documented samples and tried implementing the below code in my enterprise ...