Questions tagged [react-aad-msal]

42 questions
1
vote
1 answer

How to grant Calendar.ReadWrite.Shared permission to Azure app?

I'm trying to manage multiple outlook calendars using a single account as a proxy, so all other accounts share their personal calendar with this "master" account and within this one i can add, edit or delete events "for everyone". The problem is…
1
vote
2 answers

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 do we check if a user is logged in after initial…
1
vote
0 answers

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 in authenticationparameters which change…
1
vote
0 answers

Idiom for keeping user state during login with react-aad-msal

I'm using react-aad-msal and need to keep some state from before to after the login. Normally with Azure AD I would pass the state that I need to persist across login in the userState parameter but this is not implemented in react-aad-msal. With…
Jthorpe
  • 9,756
  • 2
  • 49
  • 64
1
vote
0 answers

AcquireTokenSilent failed when using msal.js

I'm using redirect flow to perform authenticate flow but sometimes after login redirect will met a canceled process when acquireTokenSilent here is my login process public async componentDidMount() { msalApp.handleRedirectCallback(error => { …
Kevin YANG
  • 411
  • 2
  • 8
  • 23
1
vote
1 answer

react-aad-msal clearing localstorage. passing state around

So I've been hitting a wall over this last 2 days. I haven't play around with ract/front end work for close to 2 years so please bear with me. Scenario: - load page - throw stuff in localstorage (query string params) - navigate to login…
1
vote
1 answer

How do I trigger an action after login using react-redux and react-aad-msal?

I have created an application which uses react-redux and react-aad-msal to handle AD login. I can login and logout without any problems, but after the user is logged in I want to trigger an API call to fetch data from an API. I'm not sure how to…
KungWaz
  • 1,918
  • 3
  • 36
  • 61
0
votes
2 answers

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 .handleRedirectPromise() .then(() => { const…
0
votes
0 answers

I am Using @azure/msal-react library If i login A account and after logout when i try to login with B account then its getting login as A account

I am Using @azure/msal-react library If i login with "A" account and after logout when I try to login with "B" account then its getting login as "A" account. only i.e previous account. while login i am using "acquireTokenSilent" with…
0
votes
1 answer

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 functionality in my React app using msal-react.…
Kotana Sai
  • 1,207
  • 3
  • 9
  • 20
0
votes
0 answers

How to use Microsoft login info to access an Azure application using MSAL auth for react?

I am working on a single page application (SPA) app that grants access to specific paths in the application, based on roles setup in Azure AD for the user logging in. As per this…
Skadoosh
  • 699
  • 2
  • 11
  • 27
0
votes
1 answer

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 user or invite a user for that user to access the…
0
votes
1 answer

react-aad-masal token renewal issue

In one of my react project, I am using react-aad-msal for the authentication. But, it seems that I am having the following issue: First time try to login and it works After one hour the token expires and can't access the app Need to clear the…
saon
  • 591
  • 1
  • 7
  • 19
0
votes
1 answer

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. In my case, I want to redirect my React app…
0
votes
1 answer

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 access with in other function. is there a way to…
Pradeep
  • 1,192
  • 2
  • 12
  • 30