How to get full OpenID profile, /userinfo endpoint


#1

Hi,

I managed to successfuly test Hydra with this example https://github.com/ory/hydra-login-consent-node but I was just wondering how to get full openid profile from the /userinfo endpoint? E.g. displayName, email, scopes…

Now I just get {“sub”:“[email protected]”} as response.

Is it somewhere in the login screen logic https://github.com/ory/hydra-login-consent-node/blob/master/routes/login.js?

Thanks in advance for your assistance


#2

The userinfo endpoint mirrors the data from session.id_token, more info here: https://www.ory.sh/docs/hydra/oauth2#implementing-a-login-consent-provider


#3

Thank you. It works…