How to get full OpenID profile, /userinfo endpoint

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

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

Thank you. It works…