You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -1029,6 +1032,38 @@ when required by your organization's security policy.`,
1029
1032
Group: &deploymentGroupOIDC,
1030
1033
YAML: "groupMapping",
1031
1034
},
1035
+
{
1036
+
Name: "OIDC User Role Field",
1037
+
Description: "This field must be set if using the user roles sync feature. Set this to the name of the claim used to store the user's role. The roles should be sent as an array of strings.",
1038
+
Flag: "oidc-user-role-field",
1039
+
Env: "CODER_OIDC_USER_ROLE_FIELD",
1040
+
// This value is intentionally blank. If this is empty, then OIDC user role
1041
+
// sync behavior is disabled.
1042
+
Default: "",
1043
+
Value: &c.OIDC.UserRoleField,
1044
+
Group: &deploymentGroupOIDC,
1045
+
YAML: "userRoleField",
1046
+
},
1047
+
{
1048
+
Name: "OIDC User Role Mapping",
1049
+
Description: "A map of the OIDC passed in user roles and the groups in Coder it should map to. This is useful if the group names do not match.",
1050
+
Flag: "oidc-user-role-mapping",
1051
+
Env: "CODER_OIDC_USER_ROLE_MAPPING",
1052
+
Default: "{}",
1053
+
Value: &c.OIDC.UserRoleMapping,
1054
+
Group: &deploymentGroupOIDC,
1055
+
YAML: "userRoleMapping",
1056
+
},
1057
+
{
1058
+
Name: "OIDC User Role Default",
1059
+
Description: "If user role sync is enabled, these roles are always included for all authenticated users. The 'member' role is always assigned.",
1060
+
Flag: "oidc-user-role-default",
1061
+
Env: "CODER_OIDC_USER_ROLE_DEFAULT",
1062
+
Default: strings.Join([]string{}, ","),
1063
+
Value: &c.OIDC.UserRolesDefault,
1064
+
Group: &deploymentGroupOIDC,
1065
+
YAML: "userRoleDefault",
1066
+
},
1032
1067
{
1033
1068
Name: "OpenID Connect sign in text",
1034
1069
Description: "The text to show on the OpenID Connect sign in button.",
0 commit comments