Questions tagged [passport-azure-ad]

104 questions
9
votes
4 answers

passport-azure-ad veriy msal.js token with Bearer Strategy

Im trying to integrate msal.js library(https://github.com/AzureAD/microsoft-authentication-library-for-js) with passport-azure-ad (https://github.com/AzureAD/passport-azure-ad) Bearer Strategy. My configurations are as follows: Msal.js { …
ruciu
  • 672
  • 8
  • 17
5
votes
0 answers

one session per user using Nodejs-Restify-Passport

How to allow one active session per user using node-passport-restify? ie; not allowing a user to be active in multiple session using other tabs or browsers at a time. Here is the code on which application runs. const restify =…
am831
  • 75
  • 4
5
votes
0 answers

set showPii in azure

I’m configuring my passport/express/node azure app service website for single-tenant azure ad logins. I can sign in successfully on my localhost, but when I publish the site, I get {"code":400,"message":"IDX10205: Issuer validation failed. Issuer:…
5
votes
1 answer

Passport azure-ad Verify Callback not Called

I have encountered a problem when using passport (with the passport-azure-ad strategy) to authenticate requests. The request to Azure Active Directory works fine. I can login with my credentials. After that, I expect the verify callback to be…
yrstyre
  • 141
  • 3
  • 9
4
votes
0 answers

how to get access_token passport-azure-ad in nestjs using OIDCStrategy

I'm using passport-azure-ad OIDCStrategy in nestjs app. The nest js app needs to communicate with other service secured by Azure Ad. To communicate with that service I need to provide an access_token. But in my code I configured responseType:…
Kousher Alam
  • 1,005
  • 1
  • 15
  • 30
4
votes
0 answers

passport-azure-ad using the cookie flow for OpenID hangs up and returns a token with 'undefined' values

Current configuration: identityMetadata: "https://login.microsoftonline.com/common/v2.0/.well-known/openid-configuration", clientID: secretsService.get("microsoft", "clientid"), loggingLevel: "error", …
SebastianG
  • 8,563
  • 8
  • 47
  • 111
3
votes
0 answers

Is it possible to authenticate bearer tokens in AWS api gateway using node.js passport.authenticate()?

We have a front end react app that has MSAL login that uses aws api gateway api endpoints for backend operations. After the login process I would like to send the bearer Token to the api and get it authenticated. From what I have read online you do…
Andy N
  • 1,013
  • 9
  • 25
3
votes
1 answer

Problem with OIDCStrategy passport-azure-ad passport js?

I am using the https://github.com/AzureAD/passport-azure-ad plugin to work with the Azure AD Graph API. Dependency in my package.json "passport-azure-ad": "^3.0.12" I have refered samle provided here:…
3
votes
1 answer

passport-azure-ad unable to validate `id_token` due to wrong KID

I'm encountering an issue when using the passport-azure-ad library where the library throws an error when trying to validate the id_token. The specific error message is "authentication failed due to: In _validateResponse: failed to generate PEM key…
cdimitroulas
  • 2,380
  • 1
  • 15
  • 22
3
votes
0 answers

Error "Failed to serialize user into session" when using passport.js for Azure AD

I am trying to follow the Office 365 Graph API tutorial here. However I keep running into the below error after I sign-in. Error: Failed to serialize user into session at pass…
Soumik Das
  • 276
  • 2
  • 14
3
votes
1 answer

passport-azure-ad Strategy.prototype.jwtVerify: cannot verify token

I’ve created a web API following this article: https://learn.microsoft.com/en-us/azure/active-directory/develop/quickstart-v1-nodejs-webapi const restify = require('restify'), restifyPlugins = require('restify-plugins'), config =…
3
votes
1 answer

Utilizing state/customState with passport-azure-ad

I'm having trouble figuring out the purpose of customState and if/how I can utilize it to pass data to the return url. Specifically I wish to route the user back to their original location after being signed in. I thought I could pass the original…
Thomas
  • 1,512
  • 3
  • 12
  • 37
3
votes
1 answer

Multiple policies for OIDCStrategy using passport-azure-ad

Can we have Multiple policies for OIDCStrategy within the same application. I have an application that needs to be authenticated by either through App1(ClientID1) or through App2(ClientId2). When using passport-azure-ad OIDCStrategy, i am always…
krishna N
  • 31
  • 3
2
votes
1 answer

Passport-Azure-AD not validating access_token from MSAL Angular authentication

I have an Angular 10 app that I am using the MSAL-Angular package on to authenticate with Azure AD. It successfully authenticates and retrieves the access_token and id_token using the Authorization flow. I also have an Express API backend that I am…
2
votes
1 answer

Redirect to redirectURL passport-azure-ad OIDCStrategy

I'm trying to make a login via the Azure AD Passport.js OIDCStrategy. I've used the next two pages (besides Google and looking into questions here on stackoverflow) as resources the most so…
1
2 3 4 5 6 7