summaryrefslogtreecommitdiff
path: root/pkg/web/middleware
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/web/middleware')
-rw-r--r--pkg/web/middleware/unpack_token.go2
1 files changed, 2 insertions, 0 deletions
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)),