mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: synchronize oidc user roles (#8595)
* feat: oidc user role sync User roles come from oidc claims. Prevent manual user role changes if set. * allow mapping 1:many
This commit is contained in:
Generated
+18
@@ -8393,6 +8393,18 @@ const docTemplate = `{
|
||||
"sign_in_text": {
|
||||
"type": "string"
|
||||
},
|
||||
"user_role_field": {
|
||||
"type": "string"
|
||||
},
|
||||
"user_role_mapping": {
|
||||
"type": "object"
|
||||
},
|
||||
"user_roles_default": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"username_field": {
|
||||
"type": "string"
|
||||
}
|
||||
@@ -9413,6 +9425,9 @@ const docTemplate = `{
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
},
|
||||
"login_type": {
|
||||
"$ref": "#/definitions/codersdk.LoginType"
|
||||
},
|
||||
"organization_ids": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
@@ -9866,6 +9881,9 @@ const docTemplate = `{
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
},
|
||||
"login_type": {
|
||||
"$ref": "#/definitions/codersdk.LoginType"
|
||||
},
|
||||
"organization_ids": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
|
||||
Generated
+18
@@ -7532,6 +7532,18 @@
|
||||
"sign_in_text": {
|
||||
"type": "string"
|
||||
},
|
||||
"user_role_field": {
|
||||
"type": "string"
|
||||
},
|
||||
"user_role_mapping": {
|
||||
"type": "object"
|
||||
},
|
||||
"user_roles_default": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"username_field": {
|
||||
"type": "string"
|
||||
}
|
||||
@@ -8503,6 +8515,9 @@
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
},
|
||||
"login_type": {
|
||||
"$ref": "#/definitions/codersdk.LoginType"
|
||||
},
|
||||
"organization_ids": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
@@ -8919,6 +8934,9 @@
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
},
|
||||
"login_type": {
|
||||
"$ref": "#/definitions/codersdk.LoginType"
|
||||
},
|
||||
"organization_ids": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
|
||||
Reference in New Issue
Block a user