expressjs/session

req.session.passport always gives undefined on other api calls

aathirag opened this issue · 1 comments

I am using passport-saml. In the callback URL req.session. i have passport with user details. But in other api calls it is empty.
Please check this question in stack over flow
https://stackoverflow.com/questions/72003285/passport-req-session-passport-always-gives-undefined-on-other-api-calls

Please help me what am I missing in the code

Hi @aathirag nothing seems off in your code, but unfortunately when dealing with things like SSO and cookies, the client calls and domain set up really matters. There us unfortunately not enough information to provide any further guesses than what was on your SO post.

If you can provide all the client code and then list out how to set up the server and how to replicate, we can always attempt to debug though the set up to help determine what is happening.