Questions tagged [msal-angular]
172 questions
3
votes
1 answer
Not getting token with acquireTokensilent but getting tokens with acquireTokenpopup Msal-browser
I am updating MSAL version 1.x to MSAL-browser in angular.So I am trying to migrate from version 1.x
to 2.X.I was able to replace code successfully and it is working fine. but I am getting issue with acquireTokenSilent but its working fine by using…

user3420561
- 188
- 1
- 2
- 20
3
votes
1 answer
Angular 11: Problem at Msal Angular V2 package
I have upgraded my angular project from v8 to v11.
I have upgraded @azure/msal-angular package from V1 to V2(2.0.0-beta.3).
I have followed the samples given on …

Chetan Birajdar
- 461
- 9
- 22
2
votes
0 answers
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 Microsoft popup that asks which account to…

user19141723
- 21
- 2
2
votes
1 answer
MSAL authentication in APP_INITIALIZER in Angular
we are moving to MSAL from Auth0 and previously we did authentication in APP_INITIALIZER and then added other async call after that.
return (): Promise => {
return new Promise((resolve) => {
authService
…

Jakub Šmiga
- 41
- 5
2
votes
0 answers
MsalModule does not have a module def (ɵmod property)
MsalModule does not have a module def (ɵmod property)
36 | describe('AppComponent', () => {
37 | beforeEach(waitForAsync(() => {
> 38 | TestBed.configureTestingModule({
I am executing ng test command . I have tried
import…

Akshay Jagtap
- 21
- 2
2
votes
1 answer
angular - dynamically include or remove an interceptor
Is it possible to dynamically include or exclude an interceptor?
For example, I would like to enable Azure AD based SSO in my application using microsoft's @azure/msal-angular package https://www.npmjs.com/package/@azure/msal-angular that provides…

toing
- 466
- 1
- 3
- 19
2
votes
0 answers
handleRedirectCallback of @azure/msal-angular package is not getting called when using hashlocationstrategy in angular 8
Objective - I am implementing azureAD authentication using @azure/msal-angular and msal library in angular 8.
Problem - Everything works fine when using pathlocationstrategy but when using hashlocationstrategy the @azure/msal-angular library's…

Shubho
- 135
- 1
- 8
2
votes
1 answer
Azure AD Msal Interceptor Access Token
I'm using azure MSAL to authenticate my API but problem is that I'm using DevExtreme custom store for server side pagination.
Msal Interceptor works and genrate token auto for HttpClient but in this case I'm not sending request via http.
If I'm…

Amir Sohail
- 21
- 1
- 3
2
votes
0 answers
How can I secure SPA and Azure Function with single Azure AD app registration
Background
I'm currently using Azure Functions v3.0 and MSAL Angular v2.0
I set up my Azure function AD registration using the express setup.
Callbacks were added automatically for function app, I've added a new one for the angular SPA.
Only id…

stevenrcfox
- 1,547
- 1
- 14
- 37
2
votes
1 answer
How to validate the token sent by angular app to the backend API against Azure AD?
Azure AD B2B with MSAL - Angular app is able to authenticate the user and gets the token. Now angular app needs to call APIs (spring boot with MSAL library). How can this token be validated against Azure AD?

user3760894
- 267
- 4
- 13
2
votes
1 answer
Dynamic configuration of MSAL 2 in Angular
For my Angular (v12) application, I use MSAL for Authentication and I'm facing an issue on configuration.
In configuration, I have tenantId and app Id to initialize MSAL.
I cannot use the standard Angular configuration switching with environment.ts…

nimbusparis
- 391
- 5
- 16
2
votes
1 answer
Angular - Store MSAL AccessToken in browser cookies
Is there a way to configure msal-angular to store its accessToken configs in cookies rather than storing in localStorage/sessionStorage.
I'm having security concerns about storing the token in localStorage/sessionStorage.
Such issue is also reported…

talhasaleem09
- 238
- 3
- 10
2
votes
1 answer
How to consume Azure devops REST API in angular
I have created an Angular application where I have to use Azure DevOps REST API to retrieve ticket details. I'm authenticating user against clients Azure-AD using @azure/msal-angular", "@azure/msal-browser" packages.
I'm using this document which…

Kedar Udupa
- 544
- 9
- 27
2
votes
1 answer
Wrong version of access token (expect V2 , received V1)
I am trying to register users from the Azure Active directory using @azure/msal-angular, to be more precise I tried the following tutorial
Those are the changes I have made to the project
export function MSALInstanceFactory():…

Cristian Flaviu
- 275
- 2
- 7
- 18
2
votes
0 answers
Angular with msal send invalid token to backend
I have an angular 10 application and msal security library.
I use msal-browser 2.7.0
I used this…

robert trudel
- 5,283
- 17
- 72
- 124