OAuth2 K8S
This commit is contained in:
@@ -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 }}
|
||||
Reference in New Issue
Block a user