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.

0 votes
0 answers
22 views

msal browser not retrieving new token for different clientId as check is only on account

We are using msal browser with session storage. We have mutiple applications on same domain so different applications load based on route. If one of our application is authenticated and we try to ...
RajaN's user avatar
  • 53
0 votes
0 answers
46 views

MSAL Outlook Graph API Not returning refresh token with access token

I am creating an auth flow for the user to allow Mail sending through our app for email automation so therefore I need to store the accessToken and the refreshToken in my DB to automatically send ...
DPJ's user avatar
  • 1
0 votes
1 answer
55 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 ...
Rashmi936's user avatar
0 votes
0 answers
22 views

Automatically acquire access token for site hosted in sharepoint to authenticate in on-premise web api

Is it possible to silently, completely without user interaction, acquire access token from login.microsoftonline.com, to authenticate web api running on-premise? I have registered an app in Azure ...
pilifi's user avatar
  • 43
0 votes
0 answers
23 views

Msteams bot custom tab sso failing with error code 2605 ServerTemporarilyUnavailable

we have msteams bot with custom tab in it. We use msal.js for automated sso as per this doc. Since today morning, we are suddenly getting the error: {"Description":"(pii)","...
SLJeena's user avatar
0 votes
1 answer
43 views

Get change notifications teams presence using Microsoft Graph API without delegated permissions

I am working on a application which needs ms teams change notifications for presence to update the frontend. The issue is this application will open in another application as an IFRAME, I have tried ...
HAMZA 's user avatar
  • 13
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 ...
user25230787's user avatar
1 vote
0 answers
30 views

Microsoft.Identity.Client.MsalServiceException

I am trying to send emails from my angularjs application using MSAL setup, getting these exceptions: Exception thrown: 'System.Net.WebException' in mscorlib.dll Exception thrown: 'Microsoft.Identity....
Manohar's user avatar
0 votes
1 answer
72 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 ...
p0stdelay's user avatar
0 votes
2 answers
68 views

Azure React WebApp Showing PKCE issue

Getting issue PKCE(Proof Key for Code Exchange is required for cross-origin authorization code redemption.) I have react webApp deployed on Azure WebApp , the platform there is SPA I added the ...
Sanjay Prasad's user avatar
0 votes
1 answer
139 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 ...
Bubbles's user avatar
  • 13
0 votes
1 answer
54 views

MS Entra ID redirect URL for Excel Addin

I am developing an Excel Addin that uses the MSAL to perform SSO on behalf of the logged in user. Given that the user is running the Addin from O365 cloud they are already signed into the domain, and ...
Andrew Tyson's user avatar
0 votes
1 answer
112 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 ...
S Bullen's user avatar
1 vote
0 answers
22 views

msal-browser with a non-Microsoft identity provider is refreshing tokens every time acquireTokenSilent called

I am trying to set up the MSAL browser library to work with a instance of Duende Identity Server. Login is working fine so I'm able to obtain an initial set of tokens. I'm now trying to use ...
Tom Troughton's user avatar
0 votes
0 answers
236 views

BrowserAuthError: popup_window_error: Error opening popup window on @azure/msal-browser 2.16.1

I have the following situation: Package: @azure/msal-browser 2.16.1 Code: try { authResult = await installerMsal.loginPopup({ scopes: ..., prompt: 'consent' }); } catch (err) { ... This ...
Arthur Borba's user avatar
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. ...
Kankana Ghosh's user avatar
0 votes
1 answer
93 views

TypeError: request.deviceCodeCallback is not a function when using MSAL Node

I'm encountering an issue with the MSAL Node library where I'm getting a TypeError regarding request.deviceCodeCallback not being a function. Here are the details: Relevant Code: I'm using the ...
Simone's user avatar
  • 11
1 vote
0 answers
39 views

How to build a library that can be used in various types of applications (executables, web, etc.) using msal-node?

I'm developing a library for authentication using @azure/msal-node, however, for each type of application, there is a specific class. For instance, ConfidentialClientApps for web app, web API, service/...
Simone's user avatar
  • 11
1 vote
0 answers
153 views

When logging in with MsalAuthenticationTemplate and it redirects me to my website, it gives a rendering error

When i go to my site it redirects me to the external login and i perform a login. Good so far, but then it redirects me to my site and i get the errors. The two errors i get: Warning: Cannot update a ...
Sjors G's user avatar
  • 11
0 votes
0 answers
39 views

Ionic React Android, unable to get access token after redirect

I'm using @ to get access token from azure ad b2c but I'm facing issues in android. in android it's showing error that Unable to complete authorization as there is no interactive call in progress. ...
Manu Joy's user avatar
0 votes
1 answer
77 views

OUTLOOK: MAC: Add-in using MSAL/GraphAPI, Refresh token for ssoSilent fails

Have an Outlook add-in that uses the dialog API to prompt the user via MSAL-JS for Graph API access. It works in Safari on Mac, Edge on Mac, Chrome on Mac, FF on Mac, and 100% from any Windows client ...
DEC's user avatar
  • 1
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 ...
Süleyman Türker Güner's user avatar
0 votes
0 answers
454 views

Properly secure a Vue 3 SPA with MSAL browser and Vue router navigation guards

I am trying to secure a Vue.js SPA using msal-browser redirect flow and vue router navigation guards. My solution is highly inspired by this sample from Microsoft's Github. What I am trying to achieve:...
uodami's user avatar
  • 103
0 votes
1 answer
187 views

Getting Application roles in JWT token for external users and Microsoft internal users after the Authentication

We are trying to implement Role based Authentication for our Multitenant application which allows home tenant users and External tenant users as well. Application is hosted on One tenant of Azure ...
Nag Arjun's user avatar
  • 125
1 vote
0 answers
99 views

MSAL js, Does extraScopesToConsent function properly during the loginRedirect workflow?

I am using the @azure/msal-browser library v3.9.0. I am attempting to follow the MSAL docs guide for granting consent to multiple api resource scopes during the Login Redirect workflow: https://github....
Zach A's user avatar
  • 11
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 ...
Sree Deepak's user avatar
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 ...
dani's user avatar
  • 13
0 votes
0 answers
86 views

msal-browser failed in Office Addin Dialog API

I am trying to use @azure/msal-browser and @azure/msal-react to enable Excel addin support microsoft sso and access Graph api. Due to that Excel addin does not support access external url from Excel ...
Edward's user avatar
  • 29.5k
0 votes
0 answers
31 views

Promise problems in Javascript and msal.js in getting query information asynchronously [duplicate]

first of all, I apologize if I make a mistake, I am learning to use msal.js and I am in a dilemma regarding the acquisition of information with the query, I attach my source code. const Test009 = ...
noEsUnaPrueba NoSeñor's user avatar
0 votes
0 answers
239 views

Login with redirect with MSAL and Vue - redirect unsuccessful

I'm trying to implement a login with redirect flow in my application using msal-browser 3.5.0, Vue 3 and TypeScript. While I don't think that this is a really niche requirement I can't seem to find a ...
ichbintobias2's user avatar

15 30 50 per page
1
2 3 4 5
18