passport-azure-ad-oauth2 | OAuth 2.0 authentication Passport strategies | Azure library
kandi X-RAY | passport-azure-ad-oauth2 Summary
kandi X-RAY | passport-azure-ad-oauth2 Summary
OAuth 2.0 authentication Passport strategies for Windows Azure Active Directory
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 passport-azure-ad-oauth2
passport-azure-ad-oauth2 Key Features
passport-azure-ad-oauth2 Examples and Code Snippets
Community Discussions
Trending Discussions on passport-azure-ad-oauth2
QUESTION
I am trying to authenticate my Azure Web App with passport-azure-ad-oauth2 in Node JS using express
I have tried to follow along with the documentation found here: https://github.com/auth0/passport-azure-ad-oauth2. I believe I have gotten the client ID, secret and callback URI correct...
When I go to localhost:3000, it redirects successfully to Office365 sign in. When I choose the pre-selected account, it just keeps looping back to the "select account"
When trying to sign in using an incognito window in Chrome it gives me the error: The reply URL specified in the request does not match the reply URLs configured for the application: '***appID'.
My code is obviously wrong and am hoping someone is able to possibly help me get it set up correctly.
Thanks in advance!!
My code is here
...ANSWER
Answered 2021-Jan-12 at 11:37The callback URL in your code is not the same as the one set on Azure.
That' why it says:
The reply URL specified in the request does not match the reply URLs configured for the application: '***appID'.
Set the correct URL on Azure to fix this.
For the infinite redirection issue, clear the cache and cookie in your browser and it should work.
However, if you don't correct the callback URL, it's going to happen again.
QUESTION
I am using 'passport-azure-ad-oauth2' npm module, to get an access token, which I could then pass to the MS Graph API.
...ANSWER
Answered 2019-Nov-04 at 02:45According to my test, we can use the following code to get the access token. app.js
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install passport-azure-ad-oauth2
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