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:
Steven Masley
2023-07-24 08:34:24 -04:00
committed by GitHub
parent 94541d201f
commit f827829afe
38 changed files with 596 additions and 46 deletions
+18
View File
@@ -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": {
+18
View File
@@ -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": {