Advertisement
Guest User

Untitled

a guest
Mar 24th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. ## For setting up omniauth
  2. ## see https://docs.gitlab.com/ce/integration/omniauth.html
  3. gitlab_rails['omniauth_enabled'] = true
  4. gitlab_rails['omniauth_allow_single_sign_on'] = ['google_oauth2']
  5. gitlab_rails['omniauth_auto_sign_in_with_provider'] = 'google_oauth2'
  6. gitlab_rails['omniauth_block_auto_created_users'] = false
  7. gitlab_rails['omniauth_auto_link_ldap_user'] = true
  8. # gitlab_rails['omniauth_auto_link_saml_user'] = false
  9. # gitlab_rails['omniauth_external_providers'] = ['google_oauth2']
  10. gitlab_rails['omniauth_providers'] = [
  11. {
  12. "name" => "google_oauth2",
  13. "app_id" => "(the app id)",
  14. "app_secret" => "(the app secret)",
  15. "args" => { "access_type" => "offline", "approval_prompt" => "" }
  16. }
  17. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement