I have asked this question on the GitLab forum as well: https://forum.gitlab.com/t/openid-connect-user-info-missing-email-claim/21902
I’m not familiar with OAuth or OpenID Connect.
I’m having trouble using GitLab as OpenID Connect provider. The /oauth/userinfo
request does not contain the email claim, unlike what is described here: https://docs.gitlab.com/ee/integration/openid_connect_provider.html
Here is the JSON of /oauth/userinfo
:
{
"sub": "1",
"sub_legacy": "28a9efb797d1fe9a75de87788772b5cbca9ea7e9dc5d00728c8f0a9f0785f97a",
"name": "Administrator",
"nickname": "root",
"profile": "http://gitlab.xxxxxxx.com/root",
"picture": "xxxxxx",
"groups": []
}
Am I missing any configurations? Where are the rest of the claims?