OAuth2 K8S

This commit is contained in:
mr
2026-02-24 08:51:48 +01:00
parent 84b6302d87
commit 81016b83cf
9 changed files with 73 additions and 13 deletions

View File

@@ -5,6 +5,19 @@ metadata:
name: forward-auth
spec:
forwardAuth:
address: "http://oc-auth-svc.{{ .Release.Namespace }}:8080/oc/forward"
address: "http://oc-auth-svc:8080/oc/forward"
trustForwardHeader: true
{{- end }}
authResponseHeaders: X-Auth-Request-User,X-Auth-Request-Email
---
apiVersion: traefik.io/v1alpha1
kind: Middleware
metadata:
name: root-forward-auth
spec:
forwardAuth:
address: "http://{{ .Release.Name }}-hydra-public.{{ .Release.Namespace }}:4444/oauth2/auth"
trustForwardHeader: true
authResponseHeaders: X-Auth-Request-User,X-Auth-Request-Email
{{- end }}