From c893a510232b8e0011140e3de903ac94548b5f73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20Sur=C3=A9e?= Date: Fri, 15 Nov 2024 14:28:41 +0100 Subject: [PATCH] oid_introspection: add MakeTokenContainer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This method allows third-party filters to set the oidcClaimsCacheKey which enables the use of the oidcClaimsQuery filter. Signed-off-by: Adrien Surée --- filters/auth/oidc_introspection.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/filters/auth/oidc_introspection.go b/filters/auth/oidc_introspection.go index a32752a7c0..e02950e305 100644 --- a/filters/auth/oidc_introspection.go +++ b/filters/auth/oidc_introspection.go @@ -42,6 +42,12 @@ func NewOIDCQueryClaimsFilter() filters.Spec { } } +func MakeTokenContainer(h map[string]interface{}) tokenContainer { + return tokenContainer{ + Claims: h, + } +} + func (spec *oidcIntrospectionSpec) Name() string { switch spec.typ { case checkOIDCQueryClaims: