forked from sevensolutions/traefik-oidc-auth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhttp.yml
41 lines (39 loc) · 1.12 KB
/
http.yml
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
34
35
36
37
38
39
40
41
http:
services:
whoami:
loadBalancer:
servers:
- url: http://whoami:80
middlewares:
oidc-auth:
plugin:
traefik-oidc-auth:
LogLevel: DEBUG
Provider:
UrlEnv: "PROVIDER_URL"
ClientIdEnv: "CLIENT_ID"
ClientSecretEnv: "CLIENT_SECRET"
UsePkce: true
#ValidAudience: "280538749656466235"
Scopes: ["openid", "profile", "email"]
Headers:
MapClaims:
- Claim: "preferred_username"
Header: "X-Oidc-Username"
- Claim: "sub"
Header: "X-Oidc-Subject"
# Authorization:
# AssertClaims:
# - Name: roles
# AnyOf: ["admin", "media"]
# - Name: some.nested.key
# AnyOf: ["some value"]
# If set, only the /login endpoint will initiate the login flow
#LoginUri: "/login"
#PostLoginRedirectUri: "/"
routers:
whoami:
entryPoints: ["web"]
rule: "HostRegexp(`.+`)"
service: whoami
middlewares: ["oidc-auth@file"]