2025-12-06 14:42:24 -03:00
|
|
|
# services/oauth2-proxy/middleware.yaml
|
|
|
|
|
apiVersion: traefik.io/v1alpha1
|
|
|
|
|
kind: Middleware
|
|
|
|
|
metadata:
|
|
|
|
|
name: oauth2-proxy-forward-auth
|
|
|
|
|
namespace: sso
|
|
|
|
|
spec:
|
|
|
|
|
forwardAuth:
|
2025-12-15 12:57:02 -03:00
|
|
|
address: http://oauth2-proxy.sso.svc.cluster.local/oauth2/auth
|
2025-12-06 14:42:24 -03:00
|
|
|
trustForwardHeader: true
|
|
|
|
|
authResponseHeaders:
|
|
|
|
|
- Authorization
|
|
|
|
|
- X-Auth-Request-Email
|
|
|
|
|
- X-Auth-Request-User
|
|
|
|
|
- X-Auth-Request-Groups
|