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
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 ...
0 votes
1 answer
243 views

How to access the msal graph api without getting 401 error

I have been using msal to log users into the app using the acquireTokenSilent call and that works perfectly fine. I am able to get the response token which contains things like the accessToken and ...
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 ...
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 ...
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 ...
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)","...
0 votes
1 answer
2k views

Get Access Token for Azure DevOps PAT

I build an electron app, where I use git in the background. I would like to use Azure DevOps git repositories and would like to authenticate with PATs. So, I set up an enterprise application with ...
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 ...
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 ...
2 votes
1 answer
345 views

Error using MSAL on Blazor WASM Hosted prerender

I'm using a basic Blazor WASM ASPNET Core Hosted WebAssemblyPrerendered .NET 6 app. However, when I try to try to login, I get the following. There was an error trying to log you in: 'Cannot read ...
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 ...
0 votes
0 answers
235 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 ...
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....
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 ...
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 ...

15 30 50 per page
1
2 3 4 5
36