Questions tagged [react-aad-msal]

42 questions
0
votes
1 answer

Reactjs with Azure Ouath

We use ReactJs in our Application(which is built using Adobe AEM + Reactjs). It is not SPA project we use the reactjs component in some pages and we render using ReactDOM.render using DOM element. We want to do SSO for particular page component, not…
Saibul Haq
  • 11
  • 1
0
votes
1 answer

CORS error while authorize application to call API Azure AD?

Calling the API through fetch() in React but getting CORS…
0
votes
1 answer

msal-react TypeError: Failed to fetch

I'm using: "@azure/msal-browser": "^2.11.2", "@azure/msal-react": "^1.0.0-alpha.6" My Configuration: const configuration: Configuration = { auth: { clientId: CLIENT_ID, authority: `${AUTHORITY}${TENANT}`, redirectUri:…
0
votes
1 answer

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 new access token and keeps the application going.…
PNDev
  • 590
  • 1
  • 8
  • 23
0
votes
1 answer

Login through AAD (Azure Active Directory) in React app doesn't working

I'm trying to implement an authentication through Azure Active Directory for React app. When I run my application, after login I get a blank page. In the console I see: "[HMR] Waiting for update signal from WDS..." This is my provider: export const…
Ran
  • 13
  • 2
0
votes
1 answer

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 with one API. For that I have two App Regs…
0
votes
1 answer

Finding Azure/AD groups with React-AAD-MSAL

I have integrated basic authentication with the React-Aad-MSAL client into a my react-app which allows me to get things like the users name and email successfully. Here in a component I wanted to check the users groups before displaying some data. …
Parakoopa
  • 505
  • 1
  • 9
  • 22
0
votes
1 answer

MSAL js - acquireTokenSilent fails with X-Frame-Error

We are using Azure AD B2C for React SPA web application and apis, we using b2c custom policy to support azure multi-tenant login, it's working ok for local accounts and google login, but when login with any azure account, getting iframe error from…
0
votes
1 answer

.net core 2.2 Azure Ad Jwt Token

I'm trying to validate my Azure Ad Token, obtained from the library react-aad-msal, in my .net core 2.2 middleware. The token seems to be valid, but from the backend I receive this error System.InvalidOperationException: IDX20803: Unable to obtain…
0
votes
1 answer

Azure Identity for Azure resource information from logged in user?

What I have so far I'm using two different Node.js projects but I would like to put them together. The first uses interactive login (code submitted in browser) then finds all my (signed-on user) tenants. The second uses react to click a button to…
-1
votes
2 answers

Unable to read config values from static web app

I have deployed a Static Web App in Azure with the following configuration settings: I have the following authConfig.ts: import { Configuration } from "@azure/msal-browser"; // Config object to be passed to Msal on creation export const…
-2
votes
2 answers

REACT application to call secure Azure WEBAPI Service - NO USERS

I have created a simple REACT application that is ONLY run on a local PC attached to a large screen on our network. Internal use only! It is like a billboard or dashboard. There is ZERO user interaction. The screen is NOT a touch screen and there is…
Bobby Ortiz
  • 3,077
  • 7
  • 35
  • 45
1 2
3