Skip to main content

Questions tagged [msal.js]

The Microsoft Authentication Library for JavaScript enables client-side JavaScript web applications, running in a web browser, to authenticate users using Azure AD for work and school accounts (AAD), Microsoft personal accounts (MSA), and social identity providers like Facebook, Google, LinkedIn, Microsoft accounts, etc. through Azure AD B2C service.

msal.js
0 votes
0 answers
43 views

Using MSAL, on directory's instead of subdomains

Running into an issue where we have 2 web applications (Angular) www.example.com/app1 and www.example.com/app2 and becouse they are on the same origin domain when Microsofts MSAL generates tokens it ...
Gage Hickman's user avatar
0 votes
0 answers
141 views

When using Azure AD as an Identity Provider in Azure AD B2C, idp_access_token returned after signin causes error when passed to acquireTokenOnBehalfOf

Environment: Node.js "@azure/msal-node": "^2.6.0" Short Version: When calling this: const response = await confidential_client_application.acquireTokenOnBehalfOf(...
user1063287's user avatar
  • 10.7k
3 votes
0 answers
287 views

Unable to run react jest test cases azure msal

I am working on react app, integrated msal library for azure authentications. I am trying to setup jest in project to run test cases. But i am getting error while running tests. export { MsalConsumer,...
skyshine's user avatar
  • 2,852
0 votes
0 answers
95 views

In my Mern stack project and I'm signing users with microsoft account in the tenant as well as with personal account but unable to call the graph api

I'm using @azure/msal-node package for my node js backend for signing in users and getting an access token for calling the m365 graph api. It works for the user inside our tenant but not for personal ...
Mohd Kashif Shaikh's user avatar
0 votes
0 answers
78 views

Chrome Web Extension Background Authentication

I am building a Chrome Web Extension that uses '@azure/msal-browser' to authenticate users into the app ultisiing chrome.identity and Microsoft oAuth authentication. When a user opens the extension it ...
Will W's user avatar
  • 105
0 votes
0 answers
59 views

Microsoft sso login is not logging in the user neither getting details about the account

This is my react app which handles sso login using a subdomain and fetches configuration dynamically. This is my code for a hook which fetches configuration dynamically from database. import { ...
COdeingNinja's user avatar
1 vote
1 answer
321 views

Are multiple App Registrations on Azure for SPA and web API necessary?

Are multiple App Registrations on Azure for SPA and web API necessary? I am making a SPA and API server by following this sample. Here, I had to register multiple applications on Azure. Can this be ...
Bhavya Mathur's user avatar
0 votes
0 answers
60 views

How to retrieve last user log in with MSAL

I am trying to get when the user's last log in with MSAL. So for example if a user was last logged in say 12/12/23 11:22, when a user logs back in a week later, it will show there last log in (session)...
mistermcsenpai's user avatar
0 votes
2 answers
427 views

How to integrate MSAL library from scratch with Angular js 1.x application

We build our application based on AngularJS v1.8.2 and Java as a backend. Currently we have used keyclock for MFA. We have implemented everything from the backend. Now we have to replace keycloak with ...
Ranjan Singh's user avatar
0 votes
1 answer
238 views

Getting Type 'InteractionStatus' is not assignable to type '"startup"' using node-browser and typescript

I was using node-browser 2.5 with javascript/typescript, based on this vue sample project. https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/samples/msal-browser-samples/vue3-...
omega's user avatar
  • 42.9k
0 votes
1 answer
375 views

How to use Microsoft Identity platform to login users on frontend and create users on backend

I'm creating an application for a company. Every user is going to exist within AzureAD, so I'm going to authenticate with Microsoft for these users to login to the app. This is my current logic flow: ...
Matthew Friemoth's user avatar
0 votes
1 answer
223 views

Why app react don't work in server dev? Using msal-react

My page authentication works perfectly in localhost, but in the dev server the page is blank and in the console: Error in server dev: The above error occurred in the MsalProvider component. Help me, ...
Miiih's user avatar
  • 1
0 votes
0 answers
101 views

msal://redirect not working in custom app

I am creating a electron based app where I ask the user to login to microsoft. When logging in I get the error of Failed to load URL; msal://redirect with error: ERR_FILE_NOT_FOUND. I tried the ...
limegradient's user avatar
0 votes
0 answers
111 views

msalIns.loginRedirect redirect to login page many times after login successfully

as pic showed above, when I signin, my auth page be redirected many times this auth page is just a transition page to show login status import { useEffect, useState } from 'react' import { useMsal, ...
John's user avatar
  • 718
1 vote
1 answer
145 views

MSAL.js and Axios - aquireTokenPopup interaction in progress

We're using axios request interceptors to aquire access token from MSAL.js and add it as a bearer token to all API requests to our backend: const acquireToken = async () => { const accounts = ...
andkorsh's user avatar
  • 735

15 30 50 per page
1 2
3
4 5
36