Questions tagged [msal-react]
113 questions
0
votes
1 answer
AADB2C trigger password change from SPA with custom policies
I'm looking into implementing the add password change policy for my SPA. It all seems straight-forward, but I would like to trigger the password change popup from my React code which is using the msal-browser library. In the mentioned tutorial, in…

Copil tembel
- 399
- 4
- 22
0
votes
2 answers
Which token should I use in my React app call backend API , which forward call to Graph API
In my React app I use OAuth 2.0 auth code grant for authentication , and use Graph APi to make most of the requests (I have an app registered in Azure AD). They work perfectly with the access token I received using MSAL2 Provider…

Ewelin
- 1
- 1
0
votes
0 answers
How to include query params in a redirect uri without using state parameter?
Is it possible to allow query parameters in redirect uri's without using a state parameter?
I have a react application that can only be used after being logged in, some pages modify the URL to contain IDs of particular items the user wants to view…

wwwwwwww
- 15
- 1
- 4
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
Azure Static Web App + App Service Node API + Mobile App?
Is it possible to link a Azure SWA to App Service API and also use MSAL in a mobile app (react native) to authenticate and call the same App Service API? I have tried but cannot get it working. Do I have to skip the linking part and just use MSAL in…

Albin Cederblad
- 175
- 1
- 11
0
votes
0 answers
The property 'attendees' does not exist on type 'Microsoft.OutlookServices.Event' when trying to update event with Graph API
I'm using Graph API to update calendar events. I've encountered following error on attempt to update calendar event with specific ID: "The property 'attendees' does not exist on type 'Microsoft.OutlookServices.Event"
I'm doing PATCH request using…

Ewelin
- 1
- 1
0
votes
0 answers
Having an issue with Msal Login Popup displaying login landing page
I've integrated Azure AD in our CRA but I'm having an issue sometimes where clicking the Login button opens the login popup with the login page instead of Microsoft Login. (Pictured Below)
We're using the React-MSAL with React 18.
Login Issue
Has…

Roci Dev
- 1
0
votes
1 answer
msal acquire Access/id Tokens from refresh token
I have a requirement, where App1 does the authentication with Azure B2C, and passes "RefreshToken" to App2, App2 needs to acquire Access and Id tokens using only that refresh token. The purpose of App2 is to generate cookies that gets generated when…

Ali
- 11
- 1
0
votes
1 answer
Azure AD B2C claim for username sign up
I have created a Azure AD B2C directory/tenant and created a new sign up/sign in user flow as per below:
Notice that the Identity Provider is set to user id signup (i.e. usernames).
I've created a user with the username hughbe.
When I get a JWT…

H Bellamy
- 22,405
- 23
- 76
- 114
0
votes
0 answers
MSAL authentication token in request header of WEBVIEW2 of WPF to silently authenticate or access React app
Could you please help here on below concern -
I have one react app and the app is having MSAL authentication with Token.
Now, I need to show the react app pages under webview2 in a WPF application. Here the main concern is to do the react app…

Ashok Sen
- 9
- 4
0
votes
1 answer
Azure AD authentication login redirect not working on react app hosted on S3
I am trying to authenticate a webapp using Azure AD with the MSAL react and browser libraries. This code works fine on localhost:3000 dev server but when I deploy it to the web the redirect never happens and only the UnAuthenticatedTemplate html is…

Squid
- 27
- 9
0
votes
2 answers
How to configure extraQueryParameters for redirect request in MSAL.js
My react app uses MSAL (@azure/msal-browser) for user authentication, so I configure MSAL instance in my index.tsx using configuration object:
const config = {
clientId: "myAppId",
msalConfig: {
auth: {
authority:…

Svetlana
- 163
- 1
- 15
0
votes
2 answers
MSAL React not showing roles, but they are in the token
I'm trying to implement App Roles in a single-tenant React + .NET Core app of ours. This app has successfully been authenticating users via MSAL, so this is just an incremental addition.
I have the app roles set up in Azure AD, and I have the…

Josh Anderson
- 5,975
- 2
- 35
- 48
0
votes
1 answer
Is it possible for msal-react to return a TokenCredential Object without using an interactive login?
So the use case for this is I'd like all users to be able to read files from a storage blob. I wasn't able to find a way to use existing MSAL tokens that the user has without forcing them to hit a login page as they're already authenticated by this…

kubatecht
- 11
- 4
0
votes
1 answer
azure msal-brower with nextJs: passing only one scope to the API
I've got a SPA calling an API. The user authenticates using Azure AD and I'm exposing the API with a custom scope (access).
I report below the responses based on different scopes:
scopes = ['access'] => Authorised. Scope in the passed token is:…

Ale
- 117
- 1
- 13