Closed rjouhann closed 4 years ago
You will need two things:
Our sample passes the value of session["user"]
into template. Such value is a dict in itself. And our default template displays its user["name"]
only. Display its full content to see what you have.
You will typically find a key-value pair 'preferred_username': 'johndoe@example.com'
but, strictly speaking, that is NOT the ~droid~ email you are looking for! To have a real email in user object, you would need to add "email"
into scope configuration beforehand.
thanks!
Hello, I am looking a way to retrieve the user email of the authenticated user. I can get the first and last name, as showing in the sample example but I can't figure out a way to get the email. Thanks for your help! Best Regards, Romain