-
Notifications
You must be signed in to change notification settings - Fork 326
/
config.yml_example_slack
33 lines (27 loc) · 1.21 KB
/
config.yml_example_slack
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Vouch Proxy configuration
# bare minimum to get Vouch Proxy running with Slack
vouch:
domains:
- yourdomain.com
# set allowAllUsers: true to use Vouch Proxy to just accept anyone who can authenticate at Gitea
# allowAllUsers: true
# cookie:
# secure: false
# vouch.cookie.domain must be set when enabling allowAllUsers
# domain: yourdomain.com
oauth:
# create a new OAuth application at:
# https://api.slack.com/apps
# use the manifest at `examples/slack/vouch-slack-oidc-app-manifest.yml`
# but be sure to match the `callback_url`'s below to the `redirect_urls` in the manifest
# then install the new app to your slack instance
provider: oidc
# careful! the slack client_id must be single quoted so that the yaml parser
# doesn't interpret it as a number (because yaml is actually javascript)
client_id: 'xxxxxxxxxxxxxxx.xxxxxxxxxxxxxxxxx'
client_secret: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
callback_url: https://vouch.yourdomain.com/auth
# from https://slack.com/.well-known/openid-configuration
auth_url: https://slack.com/openid/connect/authorize
token_url: https://slack.com/api/openid.connect.token
user_info_url: https://slack.com/api/openid.connect.userInfo