Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arch Linux
infrastructure
Commits
07482482
Verified
Commit
07482482
authored
May 02, 2020
by
Sven-Hendrik Haase
Browse files
Properly map SAML username to GitLab username
parent
bbb2284b
Changes
1
Hide whitespace changes
Inline
Side-by-side
tf-stage2/keycloak.tf
View file @
07482482
...
...
@@ -99,7 +99,6 @@ resource "keycloak_openid_client" "openid_gitlab" {
]
}
resource
"keycloak_saml_user_property_protocol_mapper"
"gitlab_saml_email"
{
realm_id
=
"archlinux"
client_id
=
keycloak_saml_client
.
saml_gitlab
.
id
...
...
@@ -111,7 +110,6 @@ resource "keycloak_saml_user_property_protocol_mapper" "gitlab_saml_email" {
saml_attribute_name_format
=
"Basic"
}
resource
"keycloak_saml_user_property_protocol_mapper"
"gitlab_saml_first_name"
{
realm_id
=
"archlinux"
client_id
=
keycloak_saml_client
.
saml_gitlab
.
id
...
...
@@ -123,7 +121,6 @@ resource "keycloak_saml_user_property_protocol_mapper" "gitlab_saml_first_name"
saml_attribute_name_format
=
"Basic"
}
resource
"keycloak_saml_user_property_protocol_mapper"
"gitlab_saml_last_name"
{
realm_id
=
"archlinux"
client_id
=
keycloak_saml_client
.
saml_gitlab
.
id
...
...
@@ -131,7 +128,18 @@ resource "keycloak_saml_user_property_protocol_mapper" "gitlab_saml_last_name" {
name
=
"last_name"
user_property
=
"LastName"
friendly_name
=
"Last Name"
saml_attribute_name
=
"last_name"
// maybe just name
saml_attribute_name
=
"last_name"
saml_attribute_name_format
=
"Basic"
}
resource
"keycloak_saml_user_property_protocol_mapper"
"gitlab_saml_username"
{
realm_id
=
"archlinux"
client_id
=
keycloak_saml_client
.
saml_gitlab
.
id
name
=
"username"
user_property
=
"Username"
friendly_name
=
"Username"
saml_attribute_name
=
"username"
saml_attribute_name_format
=
"Basic"
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment