548 questions
0
votes
0
answers
16
views
Blazor WASM MSAL: Redirect to admin page after token expiration with localStorage credentials
I'm using Blazor WebAssembly with MSAL for authentication and storing Azure AD B2C credentials in localStorage. My setup is roughly like this:
builder.Services.AddMsalAuthentication(options =&...
0
votes
0
answers
35
views
Why Cant I Intercept the MSAL.JS call to authorize my Entra ID User from Blazor WASM so that I can append the ui_locales query param?
We have developed a Blazor Web Assembly App (WASM) that uses the standard Microsoft.AspNetCore.Components.WebAssembly.Authentication library to handle Authentication
{
options.ProviderOptions....
0
votes
0
answers
41
views
How to use AppRegistration API roles in Blazor Wasm
I'm probably misunderstanding this, but after many days I need to ask for help.
I created an AppRegistration for my Web application (Blazor wasm) and then I created another AppRegistration for my API ...
1
vote
1
answer
124
views
SSO Issue with Azure AD B2C Using Microsoft Accounts Across Subdomains
I'm setting up SSO behaviors across multiple modules of a web platform using Azure AD B2C Custom Policies as the identity layer. The modules are React apps served from different subdomains under a ...
0
votes
0
answers
38
views
Blazor WebAssembly + MSAL: Token not refreshing when using localStorage for cacheLocation
I'm working on a Blazor WebAssembly app that uses MSAL package Microsoft.Authentication.WebAssembly.Msal version 8.0.13 for authentication. I configured the MSAL cache to use localStorage by setting ...
0
votes
1
answer
157
views
Acquiring token silently always giving the new access token
I’ve implemented a piece of code where I first generate a token, store it in localStorage, and then retrieve it from there in my fetch utility for backend API calls. However, no matter how many times ...
0
votes
0
answers
57
views
MSAL v3 library returns expired tokens
I have implemented NAA using the link (https://learn.microsoft.com/en-us/office/dev/add-ins/develop/enable-nested-app-authentication-in-your-add-in) with the below code using the MSAL library version ...
0
votes
1
answer
86
views
ADB2C Custom Policy Magic Link
I'm having trouble getting a Magic Link to work in ADB2C.
I have a React web application using the MSAL library authenticating against Azure ADB2C with custom policies. The default sign in policy is ...
1
vote
1
answer
2k
views
@azure/msal-angular v4 with Angular 19
I am building an Angular 19 application that I wish to use with MSAL. I tried to port my implementation of MSAL v2 from an older project into my new Angular 19 app and it wasn't behaving so I am ...
0
votes
1
answer
1k
views
monitor_window_timeout using msal-browser
I'm getting BrowserAuthError: monitor_window_timeout: Token acquisition in iframe failed due to timeout. I think it is happening as a result of calling ssoSilent but, I have no idea why is it ...
0
votes
1
answer
326
views
How to decrypt MSAL auth artifact, encrypted with AES-GCM and a HKDF-derived the key?
I use @azure/msal-browser in my project.
Account information are stored in the local storage and they were exploitable until recently.
But it changed in their v4 release:
if you are using the ...
0
votes
0
answers
42
views
Why do I get interaction_in_progress for the following order of method calls?
I don't know if this is a bug or not. The following order of method calls are not working:
//refresh page
addEventCallback();
initialize();
getActiveAccount();
getAllAccounts();
loginRedirect();
and ...
2
votes
1
answer
600
views
NodeJS MSAL Authentication: 430 4.2.0 STOREDRV Mailbox Logon Failure When Sending Email via Exchange Online SMTP
I am experiencing a persistent issue when attempting to send emails via SMTP using Microsoft Exchange Online in a NodeJS application. The authentication process appears to be successful, but email ...
0
votes
1
answer
398
views
OAuth 2.0 authorization code flow in Azure Active Directory B2C
I've been trying to create a custom policy in Azure B2C that is capable of capturing a parameter sent by my Blazor application at the time of /authorize.
I'll explain better:
I created a Blazor Web ...
1
vote
0
answers
161
views
How to Refresh Identity Token Using MSAL.js When Access Token is Not Expired Yet?
I'm using NAA(Nested App Authentication) MSAL.js in my outlook desktop client to handle authentication with Azure AD, and I'm encountering an issue with refreshing the identity token.
Note: It is ...
0
votes
1
answer
149
views
MSAL for React frontend & Django backend - Anything helps
Is there a standard practice for MSAL auth when using a separate frontend/backend lagnuage? Should I have both a Public and ConfidentialClient, or just one? I'm confusing myself after reading the docs ...
-2
votes
1
answer
369
views
How to Resolve CORS Policy Block for Microsoft OAuth2 Authorization Request in Node.js and React App
I have an application with a NodeJS backend and a React frontend, and I want to implement Azure SSO for it. Since the frontend is served by the backend, users who want to log in to the application are ...
0
votes
1
answer
329
views
How to redirect a user to login page if token has expired using "React AZURE MSAL SSO"?
Functionality: ReactJS MSAL SSO login, logout, refresh token and redirect to login page once token has expired.
Issue: Unable to redirect to login if the token has expired (using MSAL SSO for ReactJS)....
0
votes
1
answer
132
views
React on Azure static web app token does not persist on refresh
I deploy a react application to an Azure static web app.
My authentication works via msal with following config:
export const msalConfig = {
auth: {
clientId: "XXXXXXXXX",
...
0
votes
1
answer
315
views
Implementing Azure B2C single sign on shared between multiple apps
I want to implement SSO accross multiple apps. My requirement is that we will login in one app and switch between different apps withoout having to login again.
App 1- React Spa
App 2 - .Net based.
I ...
0
votes
1
answer
774
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
1
answer
118
views
Configure Azure Resource Manager API for an Angular Web App
I have been trying to call the azure resource manager api to get a list of the resources in a subscription but as soon as I call the method , it gives me an error and the user isn't able to ...
0
votes
1
answer
506
views
Facing 401 error while calling an api in react js with MSAL setup
I am trying to use MSAL library by Microsoft in my react js project. We have done the app registration for both front-end(react js) and backend(api). Currently, I am testing this in my local machine ...
0
votes
1
answer
268
views
How do I use MSAL-react to get the oid of any user?
I'm new to MSAL and working on an Office js react add-in, which will be free to download and use with 'basic' features and require a subscription for 'pro' features. The subscription-purchase workflow ...
1
vote
1
answer
2k
views
BrowserAuthError: popup_window_error: Error opening popup window on @azure/msal-browser 2.16.1
I have the following situation on Chrome:
Package: @azure/msal-browser 2.16.1
Code:
try {
authResult = await installerMsal.loginPopup({
scopes: ...,
prompt: 'consent'
});
} catch (err) {
.....