Commit 8d46da8a authored by Evan Read's avatar Evan Read

Merge branch 'asmaa.hassan-master-patch-03210' into 'master'

Update the instructions to set a username

See merge request gitlab-org/gitlab!70921
parents f3b48738 c2320a1a
......@@ -476,11 +476,10 @@ args: {
#### Set a username
By default, the email in the SAML response is used to automatically generate the
user's GitLab username. If you'd like to set another attribute as the username,
assign it to the `nickname` OmniAuth `info` hash attribute.
user's GitLab username.
For example, if you want to set the `username` attribute in your SAML Response to the username
in GitLab, use the following setting:
If you'd like to set another attribute as the username, assign it to the `nickname` OmniAuth `info`
hash attribute, and add the following setting to your configuration file:
```yaml
args: {
......@@ -493,6 +492,8 @@ args: {
}
```
This also sets the `username` attribute in your SAML Response to the username in GitLab.
### `allowed_clock_drift`
The clock of the Identity Provider may drift slightly ahead of your system clocks.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment