mirror of
https://github.com/coder/coder.git
synced 2025-07-21 01:28:49 +00:00
chore: add warning log if misconfigured groups oidc (#7874)
* chore: add warning log if misconfigured groups oidc This is not perfect, but if we find a 'groups' claim and it is not configured, put out a warning log to give some information
This commit is contained in:
4
cli/testdata/coder_server_--help.golden
vendored
4
cli/testdata/coder_server_--help.golden
vendored
@ -296,8 +296,8 @@ can safely ignore these settings.
|
||||
OIDC claim field to use as the email.
|
||||
|
||||
--oidc-group-field string, $CODER_OIDC_GROUP_FIELD
|
||||
Change the OIDC default 'groups' claim field. By default, will be
|
||||
'groups' if present in the oidc scopes argument.
|
||||
This field must be set if using the group sync feature and the scope
|
||||
name is not 'groups'. Set to the claim to be used for groups.
|
||||
|
||||
--oidc-group-mapping struct[map[string]string], $CODER_OIDC_GROUP_MAPPING (default: {})
|
||||
A map of OIDC group IDs and the group in Coder it should map to. This
|
||||
|
4
cli/testdata/server-config.yaml.golden
vendored
4
cli/testdata/server-config.yaml.golden
vendored
@ -238,8 +238,8 @@ oidc:
|
||||
# Ignore the userinfo endpoint and only use the ID token for user information.
|
||||
# (default: false, type: bool)
|
||||
ignoreUserInfo: false
|
||||
# Change the OIDC default 'groups' claim field. By default, will be 'groups' if
|
||||
# present in the oidc scopes argument.
|
||||
# This field must be set if using the group sync feature and the scope name is not
|
||||
# 'groups'. Set to the claim to be used for groups.
|
||||
# (default: <unset>, type: string)
|
||||
groupField: ""
|
||||
# A map of OIDC group IDs and the group in Coder it should map to. This is useful
|
||||
|
Reference in New Issue
Block a user