feat: add auto group create from OIDC (#8884)

* add flag for auto create groups
* fixup! add flag for auto create groups
* sync missing groups
Also added a regex filter to filter out groups that are not
important
This commit is contained in:
Steven Masley
2023-08-08 11:37:49 -05:00
committed by GitHub
parent 4a987e9917
commit f4122fa9f5
35 changed files with 887 additions and 128 deletions

23
coderd/apidoc/docs.go generated
View File

@ -6624,6 +6624,9 @@ const docTemplate = `{
}
}
},
"clibase.Regexp": {
"type": "object"
},
"clibase.Struct-array_codersdk_GitAuthConfig": {
"type": "object",
"properties": {
@ -8274,9 +8277,23 @@ const docTemplate = `{
},
"quota_allowance": {
"type": "integer"
},
"source": {
"$ref": "#/definitions/codersdk.GroupSource"
}
}
},
"codersdk.GroupSource": {
"type": "string",
"enum": [
"user",
"oidc"
],
"x-enum-varnames": [
"GroupSourceUser",
"GroupSourceOIDC"
]
},
"codersdk.Healthcheck": {
"type": "object",
"properties": {
@ -8583,9 +8600,15 @@ const docTemplate = `{
"email_field": {
"type": "string"
},
"group_auto_create": {
"type": "boolean"
},
"group_mapping": {
"type": "object"
},
"group_regex_filter": {
"$ref": "#/definitions/clibase.Regexp"
},
"groups_field": {
"type": "string"
},