Skip to content

Commit f1f32a3

Browse files
committed
Merge branch 'pr/paulgreg/595'
2 parents 398eaa1 + 38d2ded commit f1f32a3

3 files changed

Lines changed: 43 additions & 0 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ main
44
config/config.yml
55
config/*config.yml
66
config/config.yml_*
7+
!config/config.yml_example_pocket-id
78
config/google_config.json
89
config/secret
910
!config/testing/*

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ Vouch Proxy supports many OAuth and OIDC login providers and can enforce authent
3030
- [OpenStax](https://github.com/vouch/vouch-proxy/pull/141)
3131
- [Ory Hydra](https://github.com/vouch/vouch-proxy/issues/288)
3232
- [Nextcloud](https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/oauth2.html)
33+
- [Pocket ID](https://github.com/vouch/vouch-proxy/blob/master/config/config.yml_example_pocket-id)
3334
- most other OpenID Connect (OIDC) providers
3435

3536
Please do let us know when you have deployed Vouch Proxy with your preffered IdP or library so we can update the list.
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
2+
# Vouch Proxy configuration
3+
# bare minimum to get Vouch Proxy running with pocket-id
4+
5+
# Pocket ID
6+
# https://pocket-id.org
7+
# https://github.com/pocket-id/pocket-id
8+
9+
vouch:
10+
# domains:
11+
# valid domains that the jwt cookies can be set into
12+
# the callback_urls will be to these domains
13+
domains:
14+
- yourdomain.com
15+
- yourotherdomain.com
16+
17+
# - OR -
18+
# instead of setting specific domains you may prefer to allow all users...
19+
# set allowAllUsers: true to use Vouch Proxy to just accept anyone who can authenticate at the configured provider
20+
# and set vouch.cookie.domain to the domain you wish to protect
21+
# allowAllUsers: true
22+
23+
cookie:
24+
# allow the jwt/cookie to be set into http://yourdomain.com (defaults to true, requiring https://yourdomain.com)
25+
secure: false
26+
# vouch.cookie.domain must be set when enabling allowAllUsers
27+
# domain: yourdomain.com
28+
29+
oauth:
30+
# pocket-id
31+
provider: oidc
32+
client_id: xxxxxxxxxxxxxxxxxxxxxxxxxxxx
33+
client_secret: xxxxxxxxxxxxxxxxxxxxxxxx
34+
auth_url: https://{yourPocketIdDomain}/authorize
35+
token_url: https://{yourPocketIdDomain}/api/oidc/token
36+
user_info_url: https://{yourPocketIdDomain}/api/oidc/userinfo
37+
scopes:
38+
- openid
39+
- email
40+
- profile
41+
callback_url: http://vouch.{yourdomain.com}/auth

0 commit comments

Comments
 (0)