OIDC with Gitlab

Even with https://github.com/coder/coder/pull/5507 merged have no success with gitlab as OIDC provider. If I put a debug print of the claims data here: https://github.com/coder/coder/blob/main/coderd/userauth.go#L253 I something like this:
{"request_id": "b4bdb687-ebc3-4417-859a-30a801a14900", "Username": {"aud": "d5d9aadca67c0f49b2b7184c1904f2b602ed658f7902183f42fc36b94f945847", "auth_time": 1673612004, "email": "yyy@xxx.com", "email_verified": true, "exp": 1673882335, "groups_direct": ["aaa", "bbb", "ccc"], "iat": 1673882215, "iss": "https://gitlab.xxx.de", "sub": "7", "sub_legacy": "46e97dbbd9e7fd062ff2b6413072f0f634652eef58735409ea59638889c4e804"}}

The nickname is completely missing. Has anyone an idea what I do wrong?
GitHub
Gitlab does not set the preferred_username field.
Therefore, coder generates something from the user's email address, which is not very helpful. This allows the administrator to change the fiel...
GitHub
A tool that provisions remote development environments via Terraform - coder/userauth.go at main · coder/coder
Was this page helpful?