-
Notifications
You must be signed in to change notification settings - Fork 327
/
Copy pathconfig.yml_example_google
31 lines (25 loc) · 1.08 KB
/
config.yml_example_google
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
# Vouch Proxy configuration
# bare minimum to get Vouch Proxy running with google
vouch:
domains:
- yourdomain.com
- yourotherdomain.com
# set allowAllUsers: true to use Vouch Proxy to just accept anyone who can authenticate with Google
# allowAllUsers: true
cookie:
# allow the jwt/cookie to be set into http://yourdomain.com (defaults to true, requiring https://yourdomain.com)
secure: false
# vouch.cookie.domain must be set when enabling allowAllUsers
# domain: yourdomain.com
oauth:
provider: google
# get credentials from...
# https://console.developers.google.com/apis/credentials
client_id: xxxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.apps.googleusercontent.com
client_secret: xxxxxxxxxxxxxxxxxxxxxxxx
# Google may require callback_urls (redirect URIs) to be 'https'
callback_urls:
- https://yourdomain.com:9090/auth
- https://yourotherdomain.com:9090/auth
preferredDomain: yourdomain.com # be careful with this option, it may conflict with chrome on Android
# endpoints are set from https://godoc.org/golang.org/x/oauth2/google