Commit 3b339a8b040b1c12469a2eb1ed05bdc3b2aa9af4
1 parent
1e8ed9d5
Exists in
spb-stable
and in
3 other branches
More info about GitLab integrations with OAuth
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing
3 changed files
with
45 additions
and
2 deletions
Show diff stats
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 |  |
| 8 | 15 |  |
| 9 | 16 | |
| 10 | -And GitHub: | |
| 17 | +## GitHub: | |
| 11 | 18 | |
| 12 | 19 |  |
| 20 | + | |
| 21 | +## Google: | |
| 22 | + | |
| 23 | + | |
| 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