Skip to main content

All Questions

Tagged with
0 votes
2 answers
1k views

How to maintain the IdToken after page reload in MSAL React App?

I am using MSAL in React App. After the sign-in, I am getting the details using this code- const [userDetails, setUserDetails] = useState(null); useEffect(() => { instance ....
Dexter Ex's user avatar
0 votes
1 answer
718 views

acquireTokenByClientCredentials in @azure/msal-react?

In msal-node, By ConfidentialClientApplication and acquireTokenByClientCredintial API I was able to authenticate successfully and get the token without specifying user login detials. I want the same ...
Kotana Sai's user avatar
  • 1,662
0 votes
1 answer
318 views

MSAL Integration in React + .Net App For all Microsoft Users (Without registering or Inviting the User)

How to Integration MSAL in React + .Net App For all Microsoft Users (Without registering or Inviting the User) I have implemented it for a specific tenant, but in that, I always need to register a ...
Prashant Agrawal's user avatar
2 votes
0 answers
450 views

loginPopup does not redirect to redirectUri in the original tab but opens redirectUri on Popup in D365

I'm using MSAL in a react based SPA and a PCF component which is imported into a canvas app and this canvas app is embedded into Dynamic365 Field service CRM. I have created a Azure AAD app ...
Dhruvil Dave's user avatar
0 votes
1 answer
137 views

Directly redirect to AAD login page on hitting the URL in browser

Using MSAL 2.0 in React we can easily achieve redirect to login page using below methods Login with pop-up Login with redirect But both the methods can be performed on a login/signin button action. ...
Sheegy's user avatar
  • 93
0 votes
1 answer
317 views

How to pass MSAL access token to react elastic search App connector

AM trying to get a access token for MSAL to pass to our backend API(that eventually calls APP Search). As the access token is from msal promise i cannot initialize the token somewhere globally and ...
Pradeep's user avatar
  • 1,272
1 vote
2 answers
2k views

How to identify if a user is logged in when azure Microsoft MSAL 2.0 (msal browser)?

We are using MSAL 2.0 in our REACT SPA for authentication. The root App component implements a react higher order component (HOC) that handles the authentication part. In the authentication logic how ...
Jithin Jayan's user avatar
0 votes
1 answer
4k views

Auto logout after access token expires in react application

I have a react application authenticating with Azure AD using react-aad-msal library. The below code is working fine. But when the access token expires getAccessToken method automatically fetches the ...
PNDev's user avatar
  • 710
1 vote
0 answers
884 views

react-aad-msal library reuses previous user token after logout

We are using react-aad-msal to authenticate users with Azure AD via AD B2C. B2C is configured with custom policies, but nothing specific to logout. We are passing authority, domain_hint and login_hint ...
Marina Gurevich's user avatar
6 votes
0 answers
5k views

How Do I Mock MSAL Authentication?

I have added authentication to my web app using MSAL which connects to Azure Active Directory B2C. This works fine when I am connected and can access the Microsoft site. However, it fails when I am ...
opticyclic's user avatar
  • 7,936
2 votes
0 answers
579 views

Error 431 Request Header Fields Too Large after enabling Msal authentication to app

Due to loo long cookie send in request header azure webapp returning 431 error ie request headers field too large. I read a lot of issues on Github but nothing working. I post my config : const config ...
Neska's user avatar
  • 23
0 votes
1 answer
162 views

Authorizing SPA for an API

We have 5 REACT portals and 1 Asp:net Core 3.1 API. We would like to use same API for all portals. They all authorizes through MSAL B2B (react-aad-msal). First I am trying to take one portal to work ...
Thomas Segato's user avatar