Skip to content

req.user is undefined after passing ADFS #703

Answered by srd90
shanlau asked this question in Q&A
Discussion options

You must be logged in to vote

@shanlau it seems that your assertion consuming endpoint is


     callbackUrl: "https://localhost:3000/saml",

but your ACS implementation is not actually consuming anything (i.e. it does not handle AuthResponse from IdP):


app.post('/saml',(req, res) => {
   console.log(req.user);
   res.send('Pass ADFS');
 });

As a random side note: your configuration is yet another ADFS related config which has copy pasted acceptedClockSkewMs: -1 e.g. from /docs/adfs/README.md@ v3.2.1 or from some other random examples from internet without verifying whats being configured. Your have setup upper limit for session cookie but you accept replaying authnresponse forever (i.e. authenticated sessio…

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
1 reply
@shanlau
Comment options

Comment options

You must be logged in to vote
6 replies
@shanlau
Comment options

@srd90
Comment options

@shanlau
Comment options

@srd90
Comment options

@ShanLauCnR
Comment options

Answer selected by shanlau
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants