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:
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.
Jump to solution
2 Replies
Codercord
Codercord2mo ago
<#1293844529367089223>
Category
Help needed
Product
Coder OSS (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
Solution
tboerger
tboerger2mo ago
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.
Want results from more Discord servers?
Add your server