Questions tagged [azure-ad-msal]

Unlock the capabilities of Azure Active Directory v2 and B2C with the Microsoft Authentication Libraries (MSAL). This tool provides support for various native clients including Windows, iOS, OSX, Android, and Linux.

Using Azure AD for authentication: Implementing Msal authentication in a React Next.js application with TypeScript and App Router

Working on a React Next.js web application with Microsoft Authentication Library (MSAL) login integration, using Azure. The app utilizes Next.js with the App Router for routing. But encountering an error when attempting to run the app: createContext only w ...

Retrieve events from Microsoft Outlook calendar by utilizing the Graph API with Node.js

I am currently working on developing a user-friendly calendar application specifically designed to display calendar events for Microsoft Outlook users. For authentication, I have integrated @azure/msal-node. To fetch events, I am utilizing the GET https: ...

Logging into Azure AD from an Angular 9 Application

Struggling to authenticate with Azure AD from my Angular app. Finding it difficult to understand the process due to outdated examples on the internet. I've been following the latest documentation on GitHub but keep encountering this error when trying to ac ...

The JWT token contains a HasGroup parameter set to true, however, the roles values are missing from the claims

I recently made some changes to the group claims in my Azure AD app's token configuration. While I can see a value of hasGroup: true in my token, I am not able to view the actual list of groups. Can someone please assist me with this? "claims" ...

Disabling an Angular MSal route guard based on the environment variable's condition

My routing module is set up with MsalGuard to require authentication for child routes. While this works, I want to disable MsalGuard based on an environment variable when testing locally. How can I achieve this? I attempted using canDeactivate on my rout ...

Dealing with the "empty_url_error" while configuring a Next.js project with Microsoft Azure AD

I've been working on setting up Microsoft Azure AD authentication, and I believe I have filled in all the required fields correctly. However, despite my efforts to avoid sharing any confidential information, I keep encountering an "empty_url_error" me ...

Nuxt Authentication token parameter

Hey everyone, I'm currently facing an issue with sending a request for a token using the @nuxtjs/auth-next module in NuxtJS. Everything is working fine, but I am having trouble sending the client_secret parameter in the authorization request to AZURE AD. H ...

The Context.Principal is returning as null when making a Web API request

I have developed a web application using ASP.NET (.NET Framework 4.8) and ASP.NET WEB API 2, with SQL SERVER 2016 as the database backend. The app is integrated with Azure AD using OpenIDConnect (authorization code flow). For this specific scenario, I hav ...

msal npm build execution halted due to loader issues

I've been working on setting up msal for use with nodejs. My goal is to verify that emails are successfully received by test users in end-to-end webdriverio tests. Following the npm msal guide here, I made good progress but ran into some errors while runn ...

When integrating the @azure/msal-angular import into the Angular application, the screen unexpectedly goes blank,

Starting a new Angular app and everything is rendering as expected at localhost:4200 until the following change is made: @NgModule({ declarations: [ AppComponent, HeaderBannerComponent, MainContentComponent, FooterContentinfoComponent ...

Utilizing MSAL's loginRedirect within an Ngrx Effect: A step-by-step guide

Is there a way to utilize Msal angular's loginRedirect(): void function instead of loginPopup(): Promise in an Ngrx Effect? I've been able to successfully implement the loginPopup() method, but since loginRedirect() has a void return type, it di ...

The latest version of Chrome does not store the authentication token in the local session when using msal-browser

I have a Teams React app, but ever since the last Chrome update, I haven't been able to save the authentication token in local session with MSAL. Here is my configuration: MSAL-broswer: 2.38.1 Chrome version: 117 MSAL-configuration: ` { auth: { ...

What is the process for including a resource parameter in the acquireTokenSilent method of an MSAL instance within an Angular application?

const requestToken = { permissions: ['view_only'], }; newToken = await this.authInstance.acquireTokenSilent(requestToken); I'm trying to include the client ID of my Web API as a resource parameter when requesting the access token. Struggling to find th ...