More info about GitLab integrations with OAuth

Signed-off-by: NDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
上级 1e8ed9d5
# OAuth
You can use other services to log into GitLab via oAuth. You can use other services to log into GitLab via oAuth.
Please configure this in gitlab.yml 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: Below are screenshots how to setup your app on Twitter for this:
![Application details](twitter_app_details.png) ![Application details](twitter_app_details.png)
![API Keys](twitter_app_api_keys.png) ![API Keys](twitter_app_api_keys.png)
And GitHub: ## GitHub:
![GitHub app](github_app.png) ![GitHub app](github_app.png)
## Google:
![Google app](google_app.png)
## 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'
}
```
doc/integration/twitter_app_details.png

104.5 KB | W: | H:

doc/integration/twitter_app_details.png

118.8 KB | W: | H:

doc/integration/twitter_app_details.png
doc/integration/twitter_app_details.png
doc/integration/twitter_app_details.png
doc/integration/twitter_app_details.png
  • 2-up
  • Swipe
  • Onion skin
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册