16 lines
406 B
YAML
16 lines
406 B
YAML
# services/oauth2-proxy/middleware.yaml
|
|
apiVersion: traefik.io/v1alpha1
|
|
kind: Middleware
|
|
metadata:
|
|
name: oauth2-proxy-forward-auth
|
|
namespace: sso
|
|
spec:
|
|
forwardAuth:
|
|
address: http://oauth2-proxy.sso.svc.cluster.local:4180/oauth2/auth
|
|
trustForwardHeader: true
|
|
authResponseHeaders:
|
|
- Authorization
|
|
- X-Auth-Request-Email
|
|
- X-Auth-Request-User
|
|
- X-Auth-Request-Groups
|