Questions tagged [azure-active-directory]

The new platform, Microsoft Entra ID, formerly known as Microsoft Azure Active Directory (Microsoft Azure AD), is a cutting-edge developer tool and IAM system designed to offer seamless identity management and access control features for your cloud-based applications. Utilizing widely-recognized protocols such as OAuth2.0, OpenId Connect, and SAML2.0, it ensures top-notch security and efficiency.

Getting the accessToken for next-auth with Microsoft Graph API: A guide to obtaining your authentication token

I am currently in the process of developing an email marketing automation tool utilizing NextJS, next-auth, and Microsoft Graph API. To authenticate users, I have integrated next-auth's Azure AD B2C provider by referring to their documentation. Following ...

I am curious to know if anyone has had success using Azure AD to verify user identities for a Node.js based web

Struggling to implement Azure Active Directory for user authentication in my node.js web application, but hitting roadblocks. Has anyone managed to make this work? The documentation is lacking clarity, with example code but no clear guidance on required p ...

When using Python to authenticate with O365 using the `credentials` flow type, an error message is generated stating that the resource for the segment `messages` was not found

Switching my code from auth_type "authorization" to "credentials" was an attempt to eliminate the logon process. However, no matter what I do, I keep encountering the Error Message: Resource not found for the segment 'messages' I've experi ...

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: ...

Create a new web application to function as an API within Azure Active Directory

Can someone help me figure out how to set up a web application in Azure AD for access from other clients, such as SPA applications? I'm unsure of how to handle the authentication step in the flow. My initial thought was to register a web app (with web redi ...

Encountering a "Not Found" error (404) for saml2-acs.php while setting up SimpleSAMLphp with Microsoft Azure Directory SSO through SAML2 integration

I have set up a link in my web directory that redirects https://resolute.organization.in/sso to the simplesaml directory located at /var/www/simplesamlphp/www Here is my configuration page for simpleSAML: https://i.stack.imgur.com/g17wC.png When testing ...

Error message authentication error: "Access token validation failed due to invalid audience"

After struggling with an error for the past two days, I finally found a solution. Despite searching extensively, I could not find a single answer that resolved my issue, but rather multiple answers that collectively led me to the solution. So, let me expla ...

Guide on how to verify user identities with Azure AD in a Vue.js interface and backend developed with .Net 5

Our team is currently in the process of transitioning from .Net MVC to a Vue.js front-end. We had originally implemented a custom Attribute in our MVC version that utilized Azure AD for user authentication on specific pages. This attribute verified if user ...

Access Tokens in Azure API Application are not authorized to create contacts

Encountered an error with code NoPermissionsInAccessToken while attempting to create contacts using Application Permission in Microsoft Azure. You can view my code here: , and see what I am passing through here: http://prntscr.com/p6uiwx. ...

Unified sign on between two apps within a singular Azure AD B2C tenant (Next.js and wikiJS)

I am experiencing an issue with two apps registered in the same Azure AD B2C tenant. App1 is a Next.js app utilizing Azure AD B2C authentication using msal-react App2 is a WikiJS app equipped with two authentication strategies (customers and employees). ...

Utilizing AngularJS and ADAL.JS to Define Resource ID (Audience)

Is there a way to utilize adal.js within AngularJS to obtain a bearer token for the audience https://management.azure.com through JavaScript? I have created a client application in Azure AD and configured its permissions to allow access to the "Windows Az ...

Create personalized access tokens through Azure Active Directory (AD)

Currently, I am working on a Next.js application that requires users to log in using their Azure ID. Once logged in, I need to verify the email and other details from the token on my Node.js backend before sending a custom token to the frontend for addit ...

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 ...

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 ...

What steps are needed to authenticate to Azure AD using NodeJS?

Currently, I am utilizing the activedirectory package from npm (https://www.npmjs.com/package/activedirectory). For reference, you can view an example from activedirectory here. I am having trouble determining the URL. I attempted it with my default Azure ...

Retrieve Hidden Information from Azure Key Vault using Node.js

I'm looking to retrieve the list of users from the Azure active directory. The client has set up a Graph API application but is hesitant to share the client secret, opting instead to use Key Vault for security. How can I access the key required to fetch th ...

Different means of obtaining Azure AD login records in Python without relying on the subprocess library or powershell.exe

After researching various sources, it seems that the subprocess library in Python is commonly used to run PowerShell commands from within Python. For instance: data = subprocess.check_output(["powershell.exe", "Connect-AzureAD -AccountId < ...

Utilizing Azure SDK to send an email

In my Node.js project, I am currently utilizing azure-graph: const MsRest = require('ms-rest-azure'); const credentials = await MsRest.loginWithServicePrincipalSecret(keys.appId, keys.pass, keys.tenantId, { tokenAudience: 'graph' } ...

Verification of the token using passport-azure-ad Strategy.prototype.jwtVerify has failed

I recently developed a web API by following this informative article: Developing Node.js WebAPI with Azure Active Directory const restify = require('restify'), restifyPlugins = require('restify-plugins'), config = require('./config'), serverP ...

Using the Capacitor plugin for Firebase Auth, log in to Azure AD B2C with Ionic/Angular

I have been trying to authenticate with Microsoft using a Capacitor plugin, but I haven't had any success so far. I carefully followed the instructions in this documentation and made sure everything is well configured. Could you please guide me on where ...

Troubleshooting cross-origin resource sharing (CORS) issue while accessing API on React front-end

I have successfully generated a boilerplate ReactJS Teams app with Azure AD Single Sign-On using the Yeoman Teams App Generator. The Teams app is able to authenticate with Azure AD in the background and retrieve user profile data. Now, I am looking to ...

Implementing strong security measures for Angular and .Net Core APIs using Azure AD authentication and defining specific application roles

My system is a combination of Angular front end and .Net Core API back end. Both are set up as distinct Active Directory apps in the Azure Portal. As a result, both applications are protected by Azure AD. The API is exposed and interacted with by authenti ...

What specific authentication process does react-aad-msal employ?

I'm curious about the authentication method employed by the react-aad-msal library. Do you know if it utilizes implicit flow? Link to react-aad-msal ...