7
7
<img src="https://avatars.githubusercontent.com/u/5446298?v=4" alt="Steven Masley" width="24px" height="24px" style="vertical-align:middle; margin: 0px;"/>
8
8
</a >
9
9
</div >
10
- December 13, 2023
10
+ Updated: June, 2025
11
11
12
12
---
13
13
@@ -50,7 +50,7 @@ the `id_token`. See all configuration options for group sync in the
50
50
51
51
``` bash
52
52
# Add the 'groups' scope.
53
- CODER_OIDC_SCOPES=openid,profile,email,groups
53
+ CODER_OIDC_SCOPES=openid,profile,email,offline_access, groups
54
54
# This name needs to match the "Claim name" in the configuration above.
55
55
CODER_OIDC_GROUP_FIELD=groups
56
56
```
@@ -60,7 +60,7 @@ membership.
60
60
61
61
``` bash
62
62
# Requires the "groups" scope
63
- CODER_OIDC_SCOPES=openid,profile,email,groups
63
+ CODER_OIDC_SCOPES=openid,profile,email,offline_access, groups
64
64
# This name needs to match the "Claim name" in the configuration above.
65
65
CODER_OIDC_USER_ROLE_FIELD=groups
66
66
# Example configuration to map a group to some roles
@@ -95,7 +95,7 @@ Configure using these new attributes in Coder.
95
95
# This must be set to false. Coder uses this endpoint to grab the attributes.
96
96
CODER_OIDC_IGNORE_USERINFO=false
97
97
# No custom scopes are required.
98
- CODER_OIDC_SCOPES=openid,profile,email
98
+ CODER_OIDC_SCOPES=openid,profile,email,offline_access
99
99
# Configure the group/role field using the attribute name in the application.
100
100
CODER_OIDC_USER_ROLE_FIELD=approles
101
101
# See our docs for mapping okta roles to coder roles.
@@ -147,7 +147,7 @@ need to configure coder to use this.
147
147
# authorization server.
148
148
CODER_OIDC_ISSUER_URL=https://dev-12222860.okta.com/oauth2/default
149
149
# Add the new scope you just configured
150
- CODER_OIDC_SCOPES=openid,profile,email,roles
150
+ CODER_OIDC_SCOPES=openid,profile,email,roles,offline_access
151
151
# Use the claim you just configured
152
152
CODER_OIDC_USER_ROLE_FIELD=roles
153
153
# See our docs for mapping okta roles to coder roles.
0 commit comments