Restrict access for Gitlab Auth
Hi community, how can I restrict the access based on Gitlab authentication? I have created the Gitlab app on a group like
foo/bar/coder
, can I restrict the access to members of the coder
group only? Currently anybody authenticated to Gitlab is able to sign into Coder.Solution:Jump to solution
Found the solution on my own by try and error. I got to assign the env variables CODER_OIDC_GROUP_FIELD=groups and CODER_OIDC_ALLOWED_GROUPS=foo/bar/coder to get it working as expected.
2 Replies
<#1293844529367089223>
Category
Help needed
Product
Coder OSS (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
Solution
Found the solution on my own by try and error. I got to assign the env variables CODER_OIDC_GROUP_FIELD=groups and CODER_OIDC_ALLOWED_GROUPS=foo/bar/coder to get it working as expected.