switch forwardAuth response headers matching to RegEx

This commit is contained in:
Lockszmith (runtipi@kateryna) 2024-12-04 21:03:12 -05:00 committed by Lockszmith (@kateryna)
parent fca5cfed8a
commit b8b33c280f
2 changed files with 14 additions and 12 deletions

View File

@ -2,6 +2,7 @@ http:
serversTransports: serversTransports:
insecuretransport: insecuretransport:
insecureSkipVerify: true insecureSkipVerify: true
middlewares: middlewares:
secureHeaders: secureHeaders:
headers: headers:

View File

@ -4,15 +4,16 @@ http:
forwardAuth: forwardAuth:
address: https://auth.szk.li/outpost.goauthentik.io/auth/traefik address: https://auth.szk.li/outpost.goauthentik.io/auth/traefik
trustForwardHeader: true trustForwardHeader: true
authResponseHeaders: authResponseHeadersRegex: "^[Xx]-[Aa]uthentik"
- X-authentik-username # authResponseHeaders:
- X-authentik-groups # - X-authentik-username
- X-authentik-email # - X-authentik-groups
- X-authentik-name # - X-authentik-email
- X-authentik-uid # - X-authentik-name
- X-authentik-jwt # - X-authentik-uid
- X-authentik-meta-jwks # - X-authentik-jwt
- X-authentik-meta-outpost # - X-authentik-meta-jwks
- X-authentik-meta-provider # - X-authentik-meta-outpost
- X-authentik-meta-app # - X-authentik-meta-provider
- X-authentik-meta-version # - X-authentik-meta-app
# - X-authentik-meta-version