gitlab-org--gitlab-foss/doc/integration/oauth.md
Dmitriy Zaporozhets 3b339a8b04
More info about GitLab integrations with OAuth
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-04-08 10:32:00 +03:00

943 B

OAuth

You can use other services to log into GitLab via oAuth.

For this you need:

  • create app in selected services
  • configure gitlab.yml

Twitter:

Below are screenshots how to setup your app on Twitter for this:

Application details API Keys

GitHub:

GitHub app

Google:

Google app

GitLab config file

Second step is to modify gitlab.yml with app credentials:

production:
  ...

  omniauth:
    enabled: true
  
    providers:
      - { 
        name: 'twitter',
        app_id: 'XXXXXXXX',
        app_secret: 'XXXXXXXXXXXXXXXXXXXXXXXX'
        }
      - { 
        name: 'google_oauth2',
        app_id: 'XXXXXXXXXXX.apps.googleusercontent.com',
        app_secret: 'XXXXXXXX'
        }
      - { 
        name: 'github',
        app_id: 'XXXXXXXXXX',
        app_secret: 'XXXXXXXXXXXXXXXXXXXXXXXX'
        }