How to get user information from request object after login? Because currently, the user data looks empty! #803
Unanswered
MrPhyaeSoneThwim
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Seems that you are missing body-parser. const bodyParser = require("body-parser");
app.use(bodyParser.urlencoded({encoded: true})); second opinions:
and what comes to #703 it seems that at the heart of that problem was also lack of bodyparser but due to some unknown reason questioner resolved issue by adding bodyparser.json() instead of urlencoded ( #703 (reply in thread) ) btw. remove this due obvious attack vectors it enables (see e.g. #703 (comment) ): acceptedClockSkewMs: -1, |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I followed the instructions from ADFS Doucmentation and generated key, cert & xml file for localhost using
And the following is my code implementation in index.js file.
And this one is passport.js file
I'm trying to setup ADFS authentication as first time. Is my code flow correct? And, is there any things I need to configure to access user information after login succeeded. I hope someone can give me a piece of advice for that. And the another issue is redirecting so many times to ADFS SAML login page after navigate to /adfs/saml/postResponse url.
And I followed the steps from the last Discussion for the same issue from Discusstion 703 but not really solved my issue.
Beta Was this translation helpful? Give feedback.
All reactions