Questions tagged [msal-angular]
172 questions
0
votes
1 answer
Authenticating ASP.NET Core Background Service to Azure/Office365 through an Angular SPA using msal-angular
I'm building a web application; the frontend is a SPA using Angular8 and the backend is an ASP.NET Core 3.1 Web API.
The application already has its own authentication scheme, setup using JWT Bearer tokens.
Now I need to add the ability for the…

Marco Zanoni
- 1
- 1
0
votes
1 answer
Bearear token didn't set when HTTP calls made @azure/angular
I have implemented the Azure AD in one of my project. After login I have tried to make an Http calls to the web api which is the protected ones.
Implemented the steps mentioned in the docs. But once I make an http call getting 401…

prem_kumar
- 124
- 1
- 10
0
votes
2 answers
Graph API - Update existing User - Insufficient privileges to complete the operation
I am currently developing an app that communicates with the Graph API. I don't have any Backend, only a SPA. I use the npm package @microsoft/microsoft-graph-client.
The app should be able to change givenName, surname of an AD user.
At the beginning…

pbachman
- 934
- 2
- 11
- 18
0
votes
1 answer
Angular routing with Msal Azure AD integration
I am on Angular 13, integrated with Azure AD using MSAL. My issue is as soon as the user successfully logs in , the logincomponent is not displayed. But when I do a page refresh then the login component displays. How do I get login component to…

user1005310
- 737
- 2
- 12
- 40
0
votes
1 answer
getAccount is Deprecated for MSAL (@azure/msal-angular) and I need to get username after logged in and display it in UI
getAccount is Deprecated for MSAL (@azure/msal-angular) and I need to get username after logged in and display it in UI

Coder Guy
- 87
- 9
0
votes
1 answer
Microsoft Authentication Library for Angular Session Detect Problem
I am working on Microsoft Authentication Library for Angular. but I am facing some problems the problem is my active directory session is available they don't detect the session and can't log in.

sumair khan
- 3
- 1
- 3
0
votes
1 answer
MSAL doesn't pop up when project is published to Azure VM
Below is my code to popup and login through MSAL.
var app = PublicClientApplicationBuilder.Create(msal.ClientId)
.WithDefaultRedirectUri()
.WithTenantId(msal.TenantId)
.Build();
var result = await…

Anthony Earl R. Cuartero
- 155
- 4
- 16
0
votes
1 answer
Azure AD B2C keeps providing v1 tokens not v2 tokens
Azure's AD B2C keeps issuing v1 tokens even though v2 tokens are configured in the manifest of the SPA app that's registered:
{
"id": "XXX",
"acceptMappedClaims": null,
"accessTokenAcceptedVersion": 2,
"addIns": [],
…

Windowlicker
- 498
- 11
- 18
0
votes
1 answer
MSAL profileEdit does not return changed profile data to Angular app until Logout and Login
I have an app that uses MSAL and Azure userflows to provide login, register and profile edit pages and functionality in my Angular/Ionic app, but for some reason, the profiles that are edited return the unchanged data to my app. Were I to go back to…

Ian Steffy
- 1,234
- 3
- 18
- 45
0
votes
1 answer
Angular app Http Parsing Error on Production SPA
I have angular and dotnet core template app in same directory.
I have to upload build on azure server but I'm getting this error. Please guide me how I can fix this problem.
Production:
ERROR Error: Uncaught (in promise): TR:…

Amir Sohail
- 21
- 1
- 3
0
votes
1 answer
Unable to click to the button to redirect and connect via microsoft account in my angular application
I built an angular application and I wanted to let users connect to it only via microsoft account using @azure/msal-angular and @azure/msal-browser packages.
I created a component to handle the connection called login
this is…

LinusTux
- 26
- 8
0
votes
1 answer
How do I call a protected web api from a angular application
I followed this doc: asp.net core web api and this doc for the SPA
However, when trying to make a web api call from my angular application (with the [authorize] attribute set) I receive the following error message in the console log:
Access to…

lightbulb_1_110
- 15
- 5
0
votes
1 answer
How to refresh Azure AD B2C (Angular) SPA session data?
Scenario :
I am logged-in through an AD B2C account in my Angular application.
I have integrated msal-browser (^2.15.0) and msal-angular (^2.0.1), for authentication and to access session data.
I use Graph API (from my .NET server) to update my AD…

Prakash M.
- 479
- 8
- 26
0
votes
0 answers
Is it really impossible to use Microsoft Access tokens in Angular Office.js AddIns?
We would like to use Microsoft Authentication for our Office AddIn's for Word and Outlook.
Microsofts documentation about SSO says: use Office.auth.getAccessToken. I learned that it is not in preview anymore but I cannot use it because my…

wilcotroost
- 63
- 7
0
votes
1 answer
Any way to handle AADSTS50105 in MSAL?
When "User Assignment Required" is turned on for the application in Azure AD and the user is not directly assigned on in the group that is assigned, the logon process gets stuck at an Azure AD error message and won't return to the Angular code.
Is…

DGilmour
- 1