git.iko.soy/typeable/oauth2-proxy
on master help sign in
fix alpha config example

Signed-off-by: Jan Larwig <jan@larwig.com>

commit4c0dd28f129d9ac402c4f8eabe0b88f0d10b393b authortuunit <jan@larwig.com> dateSun 9 Feb 2025, 19:29 (2 years ago) parentc186d40
2 files changed+30−23
contrib/local-environment/oauth2-proxy-alpha-config.cfg+1−2 contrib/local-environment/oauth2-proxy-alpha-config.yaml+29−21
contrib/local-environment/oauth2-proxy-alpha-config.cfg+1−2
@@ -1,5 +1,4 @@
1−http_address="0.0.0.0:4180"
21cookie_secret="OQINaROshtE9TcZkNAm-5Zs2Pv3xaWytBmc5W7sPX7w="
32email_domains="example.com"
43cookie_secure="false"
5−redirect_url="http://localhost:4180/oauth2/callback"
4+redirect_url="http://oauth2-proxy.localtest.me:4180/oauth2/callback"
contrib/local-environment/oauth2-proxy-alpha-config.yaml+29−21
@@ -1,23 +1,31 @@
1−upstreams:
2− - id: httpbin
3− path: /
4− uri: http://httpbin
1+server:
2+ bindAddress: "0.0.0.0:4180"
3+upstreamConfig:
4+ upstreams:
5+ - id: httpbin
6+ path: /
7+ uri: http://httpbin.localtest.me:8080
58injectRequestHeaders:
6−- name: X-Forwarded-Groups
7− values:
8− - claim: groups
9−- name: X-Forwarded-User
10− values:
11− - claim: user
12−- name: X-Forwarded-Email
13− values:
14− - claim: email
15−- name: X-Forwarded-Preferred-Username
16− values:
17− - claim: preferred_username
9+ - name: X-Forwarded-Groups
10+ values:
11+ - claimSource:
12+ claim: groups
13+ - name: X-Forwarded-User
14+ values:
15+ - claimSource:
16+ claim: user
17+ - name: X-Forwarded-Email
18+ values:
19+ - claimSource:
20+ claim: email
21+ - name: X-Forwarded-Preferred-Username
22+ values:
23+ - claimSource:
24+ claim: preferred_username
1825providers:
19−- provider: oidc
20− clientSecret: b2F1dGgyLXByb3h5LWNsaWVudC1zZWNyZXQK
21− clientID: oauth2-proxy
22− oidcConfig:
23− issuerURL: http://dex.localhost:5556/dex
26+ - id: oidc
27+ provider: oidc
28+ clientSecret: b2F1dGgyLXByb3h5LWNsaWVudC1zZWNyZXQK
29+ clientID: oauth2-proxy
30+ oidcConfig:
31+ issuerURL: http://dex.localhost:5556/dex