0

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?

0

Oh, I just found out that the GitLab user must set their public email to something, before the email claim appears.

Well, I guess it’s hard to use GitLab provided email as my new username then...

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.