Questions tagged [azure-ad-msal]

The Microsoft Authentication Libraries (MSAL) gives you the ability to add support for Azure Active Directory v2 (serves Microsoft Account and AAD) and B2C. Supports native clients such as Windows, iOS, OSX, Android, and Linux.

2700 questions
0
votes
1 answer

Microsoft Graph Authentication using O365 python lib

I'm adpting a basic script, that i did to send standardized emails to a list of emails, to use msal. I used the msal python lib (v 1.21.0) like so: import msal redirect_url =…
0
votes
1 answer

React Application MSAL authentication unable to read config values

I have an Azure Static Web App. Since I don’t have enough permission, I’m unable to view the config settings of this app (REACT_APP_AAD_UI_APP_CLIENT_ID, REACT_APP_AAD_API_APP_CLIENT_ID, REACT_APP_AAD_APP_TENANT_ID,…
user989988
  • 3,006
  • 7
  • 44
  • 91
0
votes
1 answer

MSAL Java Servlet Example: How to avoid Sign-In button prompting "Pick an account"?

I installed the MSAL Java Servlet example. It basically works, however when I click on the "Sign In" button it sends me to https://login.microsoftonline.com to present a prompt "Pick an account" (only 1 account listed). I can select my account…
0
votes
2 answers

Python import Ms_graph ModuleNotFoundError

I'm trying to use the MS_graph python module to download files from onedrive. I tried using the pip install msal command. But when you run the code, this error returns: Traceback (most recent call last): File "C:/Users/spado/Desktop/ad.py", line 3,…
0
votes
0 answers

NestJS MSAL AzureAD Authentication

I have issues authentication myself in my application. When I try to access I get 401 access denied, although the token is successfully granted. My azure-ad.guard.ts: import { Injectable, Logger } from "@nestjs/common"; import { PassportStrategy,…
XRJPK
  • 63
  • 1
  • 8
0
votes
1 answer

Configure application settings for Azure Static Web Apps (React MSAL)

I'm learning about MSAL authentication in React application per environment. authConfig.ts import { Configuration } from "@azure/msal-browser"; import { envConfig } from "./config"; // Config object to be passed to Msal on creation export const…
user989988
  • 3,006
  • 7
  • 44
  • 91
0
votes
1 answer

How to auto login when accessToken expired with @azure/msal-browser

I have an application where authorization happens through @azure/msal-browser And at the moment it works for me like this: when the session time ends, the expired field appears and a modal window is shown according to this condition. The modal…
0
votes
1 answer

Microsoft oauth consent page doesn't use the scopes I requested

I am using msal-node to get oauth access tokens. In my code, I have the following scopes: scopes: [ "https://graph.microsoft.com/People.Read.All", "https://graph.microsoft.com/Channel.Create", …
0
votes
2 answers

Bearer error="invalid_token" Signature Invalid after Authorised with Swagger via MSAL Microsoft Azure

I am trying to call the weather forecast endpoint after authenticating via MSAL. (Enabling user authentication in Swagger using Microsoft Identity) As per this…
0
votes
2 answers

401 unauthorized on hitting endpoint using MSAL React Application authentication

I'm following this tutorial to authenticate a react application using MSAL and call my own api using the authentication token: https://github.com/oizhaolei/typescript-msal-sample I added the following code to make an api call: import { loginRequest,…
user989988
  • 3,006
  • 7
  • 44
  • 91
0
votes
0 answers

MSAL Error: You may need an appropriate loader to handle this file type

I am trying to configure Azure MSAL from scratch. This is new React app with v16. But i am getting error. I have tried to download the Azure MSAL React example project it is working on React v18. Getting error in file:…
Tushar
  • 23
  • 2
0
votes
1 answer

CORS Error with Microsoft MSAL-Node request

I am receiving a CORS error when I am attempting to receive an auth token through a client credential request using msal-node. I can get the token through a request with Postman but when I use my React App localhost it gives me a CORS error. Do I…
0
votes
0 answers

Authenticate personal and work/school accounts with device code flow in MSAL.NET

I'm developing a C# .NET 6.0 desktop application which should be able to authenticate both personal (e.g. outlook.com) and work or school accounts using the device code flow in MSAL.NET. In the Microsoft Azure Portal I have registered the…
rikyuz
  • 21
  • 7
0
votes
0 answers

Verify Identity User has role for protected API endpoint

I have followed some guides from MS and others on protecting a .Net core 7 controller based API. I have created roles inside the app registration and assigned users to those roles. Inside Program.cs I have generated some policies I plan to use,…
0
votes
1 answer

Getting "Server response does not contain an authorization code to proceed" using MSAL when redirecting

I have a React app which is hosted at a location say "https://react-website@domain.com" with redirect URL as "https://react-website@domain.com/redirect.html", which sets up the reply_to URl as state of the Azure AD (Single Page application) config.…
tanmayghosh2507
  • 773
  • 3
  • 12
  • 31
1 2 3
99
100