summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2017-09-06 15:34:07 +0000
committerDouwe Maan <douwe@gitlab.com>2017-09-06 15:34:07 +0000
commit58e367fda0ea8301cab912f7b8ed0b79b24f410e (patch)
treec6f0641040060c74d5e49706d744a8a0a61c3147 /doc
parentcdd8f2f345aeb3fb05bbe8f567e72b717f388636 (diff)
parent4df54f260751a832ebf0b8c18524020d6604994b (diff)
downloadgitlab-ce-58e367fda0ea8301cab912f7b8ed0b79b24f410e.tar.gz
Merge branch 'generalize-profile-updates' into 'master'
Profile updates from providers See merge request !12968
Diffstat (limited to 'doc')
-rw-r--r--doc/integration/omniauth.md18
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/integration/omniauth.md b/doc/integration/omniauth.md
index 6c11f46a70a..0e20b8096e9 100644
--- a/doc/integration/omniauth.md
+++ b/doc/integration/omniauth.md
@@ -224,3 +224,21 @@ By default Sign In is enabled via all the OAuth Providers that have been configu
In order to enable/disable an OmniAuth provider, go to Admin Area -> Settings -> Sign-in Restrictions section -> Enabled OAuth Sign-In sources and select the providers you want to enable or disable.
![Enabled OAuth Sign-In sources](img/enabled-oauth-sign-in-sources.png)
+
+
+## Keep OmniAuth user profiles up to date
+
+You can enable profile syncing from selected OmniAuth providers and for all or for specific user information.
+
+ ```ruby
+ gitlab_rails['sync_profile_from_provider'] = ['twitter', 'google_oauth2']
+ gitlab_rails['sync_profile_attributes'] = ['name', 'email', 'location']
+ ```
+
+ **For installations from source**
+
+ ```yaml
+ omniauth:
+ sync_profile_from_provider: ['twitter', 'google_oauth2']
+ sync_profile_claims_from_provider: ['email', 'location']
+ ``` \ No newline at end of file