Commit c2320a1a authored by Asmaa Hassan's avatar Asmaa Hassan Committed by Evan Read

Update the instructions to set a username

parent f3b48738
......@@ -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