From 9e83b4b2e95254ba51c66ed15f400d3bec5712f1 Mon Sep 17 00:00:00 2001 From: mo khan Date: Wed, 16 Apr 2025 16:15:21 -0600 Subject: feat: attach middleware to unpack session cookie --- pkg/web/middleware/unpack_token.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pkg/web') diff --git a/pkg/web/middleware/unpack_token.go b/pkg/web/middleware/unpack_token.go index 8993df1..b53d5d3 100644 --- a/pkg/web/middleware/unpack_token.go +++ b/pkg/web/middleware/unpack_token.go @@ -4,6 +4,7 @@ import ( "net/http" "github.com/xlgmokha/x/pkg/context" + "github.com/xlgmokha/x/pkg/log" "gitlab.com/gitlab-org/software-supply-chain-security/authorization/sparkled/pkg/oidc" ) @@ -26,6 +27,7 @@ func UnpackToken() func(http.Handler) http.Handler { return } + log.WithFields(r.Context(), log.Fields{"id_token": idToken}) next.ServeHTTP( w, r.WithContext(IDTokenContextKey.With(r.Context(), idToken)), -- cgit v1.2.3