Commit 3b339a8b040b1c12469a2eb1ed05bdc3b2aa9af4

Authored by Dmitriy Zaporozhets
1 parent 1e8ed9d5

More info about GitLab integrations with OAuth

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
doc/integration/google_app.png 0 → 100644

51.4 KB

doc/integration/oauth.md
  1 +# OAuth
  2 +
1 3 You can use other services to log into GitLab via oAuth.
2 4  
3   -Please configure this in gitlab.yml
  5 +For this you need:
  6 +
  7 +* create app in selected services
  8 +* configure gitlab.yml
  9 +
  10 +## Twitter:
4 11  
5 12 Below are screenshots how to setup your app on Twitter for this:
6 13  
7 14 ![Application details](twitter_app_details.png)
8 15 ![API Keys](twitter_app_api_keys.png)
9 16  
10   -And GitHub:
  17 +## GitHub:
11 18  
12 19 ![GitHub app](github_app.png)
  20 +
  21 +## Google:
  22 +
  23 +![Google app](google_app.png)
  24 +
  25 +
  26 +## GitLab config file
  27 +
  28 +Second step is to modify gitlab.yml with app credentials:
  29 +
  30 +```
  31 +production:
  32 + ...
  33 +
  34 + omniauth:
  35 + enabled: true
  36 +
  37 + providers:
  38 + - {
  39 + name: 'twitter',
  40 + app_id: 'XXXXXXXX',
  41 + app_secret: 'XXXXXXXXXXXXXXXXXXXXXXXX'
  42 + }
  43 + - {
  44 + name: 'google_oauth2',
  45 + app_id: 'XXXXXXXXXXX.apps.googleusercontent.com',
  46 + app_secret: 'XXXXXXXX'
  47 + }
  48 + - {
  49 + name: 'github',
  50 + app_id: 'XXXXXXXXXX',
  51 + app_secret: 'XXXXXXXXXXXXXXXXXXXXXXXX'
  52 + }
  53 +
  54 +```
  55 +
... ...
doc/integration/twitter_app_details.png

104 KB | W: | H:

119 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin