AppModelv2-WebApp-OpenIDConnect-nodejs | js web app using OpenID Connect authentication with Azure | Azure library
kandi X-RAY | AppModelv2-WebApp-OpenIDConnect-nodejs Summary
kandi X-RAY | AppModelv2-WebApp-OpenIDConnect-nodejs Summary
A Node.js web app using OpenID Connect authentication with Azure AD v2.0
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of AppModelv2-WebApp-OpenIDConnect-nodejs
AppModelv2-WebApp-OpenIDConnect-nodejs Key Features
AppModelv2-WebApp-OpenIDConnect-nodejs Examples and Code Snippets
Community Discussions
Trending Discussions on AppModelv2-WebApp-OpenIDConnect-nodejs
QUESTION
I'm trying to set up Azure AD v2 from http://aka.ms/aaddevv2 using https://github.com/AzureADQuickStarts/AppModelv2-WebApp-OpenIDConnect-nodejs (master branch @ b752987b7367fc92692ac538e1fc24cb400d0fbc), however I can't seem to log in with accounts created outside of the user who created the the app at https://apps.dev.microsoft.com/?deeplink=/appList.
On the apps.dev.microsoft.com end, I have:
- the Application ID, and have created a password which I've used in the
clientID
andclientSecret
respecitively in the config.js file. - Added
http://localhost:3000/auth/openid/return
underRedirect URLs
- Have
User.Read
for theDelegated Permissions
section
Is there anything else I need to set up? Am I missing something in the code?
The error I get when logging in with accounts outside of the setup account is:
...Sign in Sorry, but we’re having trouble signing you in.
AADSTS50020: User account '[email]' from identity provider 'live.com' does not exist in tenant 'Default Directory' and cannot access the application '[clientID]' in that tenant. The account needs to be added as an external user in the tenant first. Sign out and sign in again with a different Azure Active Directory user account.
ANSWER
Answered 2018-Mar-20 at 12:13You need to set the identity metadata URL so that it allows personal accounts.
For example:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install AppModelv2-WebApp-OpenIDConnect-nodejs
$ git clone git@github.com:AzureADQuickStarts/AppModelv2-WebApp-OpenIDConnect-nodejs.git
$ git clone https://github.com/AzureADQuickStarts/AppModelv2-WebApp-OpenIDConnect-nodejs.git
$ npm install
Start mongoDB service. If you are using mongoDB session store in this app, you have to install mongoDB and start the service first. If you are using the default session store, you can skip this step. Run the app using the following command from your command line.
Start mongoDB service. If you are using mongoDB session store in this app, you have to install mongoDB and start the service first. If you are using the default session store, you can skip this step.
Run the app using the following command from your command line.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page