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: { ...@@ -476,11 +476,10 @@ args: {
#### Set a username #### Set a username
By default, the email in the SAML response is used to automatically generate the 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, user's GitLab username.
assign it to the `nickname` OmniAuth `info` hash attribute.
For example, if you want to set the `username` attribute in your SAML Response to the username If you'd like to set another attribute as the username, assign it to the `nickname` OmniAuth `info`
in GitLab, use the following setting: hash attribute, and add the following setting to your configuration file:
```yaml ```yaml
args: { args: {
...@@ -493,6 +492,8 @@ args: { ...@@ -493,6 +492,8 @@ args: {
} }
``` ```
This also sets the `username` attribute in your SAML Response to the username in GitLab.
### `allowed_clock_drift` ### `allowed_clock_drift`
The clock of the Identity Provider may drift slightly ahead of your system clocks. 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