mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
feat(coderd): set full name from IDP name claim (#13468)
* Updates OIDC and GitHub OAuth login to fetch set name from relevant claim fields * Adds CODER_OIDC_NAME_FIELD as configurable source of user name claim * Adds httpapi function to normalize a username such that it will pass validation * Adds firstName / lastName fields to dev OIDC setup
This commit is contained in:
@@ -10,6 +10,7 @@ set -euo pipefail
|
||||
|
||||
KEYCLOAK_VERSION="${KEYCLOAK_VERSION:-22.0}"
|
||||
|
||||
# NOTE: the trailing space in "lastName" is intentional.
|
||||
cat <<EOF >/tmp/example-realm.json
|
||||
{
|
||||
"realm": "coder",
|
||||
@@ -23,6 +24,8 @@ cat <<EOF >/tmp/example-realm.json
|
||||
{
|
||||
"username": "oidcuser",
|
||||
"email": "oidcuser@coder.com",
|
||||
"firstName": "OIDC",
|
||||
"lastName": "user ",
|
||||
"emailVerified": true,
|
||||
"enabled": true,
|
||||
"credentials": [
|
||||
|
||||
Reference in New Issue
Block a user