From eb36716ba4b2a190f6484ab92cee2a15bcae08a2 Mon Sep 17 00:00:00 2001 From: Sudarsan Reddy Date: Wed, 21 Sep 2022 15:27:55 +0100 Subject: [PATCH] TUN-6774: Validate OriginRequest.Access to add Ingress.Middleware We take advantage of the JWTValidator middleware and attach it to an ingress rule based on Access configurations. We attach the Validator directly to the ingress rules because we want to take advantage of caching and token revert/handling that comes with go-oidc. --- ingress/middleware/verifier.go | 10 ---------- 1 file changed, 10 deletions(-) delete mode 100644 ingress/middleware/verifier.go diff --git a/ingress/middleware/verifier.go b/ingress/middleware/verifier.go deleted file mode 100644 index 7888dc31..00000000 --- a/ingress/middleware/verifier.go +++ /dev/null @@ -1,10 +0,0 @@ -package middleware - -import ( - "context" - "net/http" -) - -type Handler interface { - Handle(ctx context.Context, r *http.Request) error -}