summaryrefslogtreecommitdiff
path: root/app/middleware/id_token.go
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-04-25 15:36:04 -0600
committermo khan <mo@mokhan.ca>2025-04-25 15:36:04 -0600
commit786c4d2cd0860032e2624cadbbf54891d4269ae2 (patch)
tree3ad2aa0e298d97b431982183224c1e8c6a7ed817 /app/middleware/id_token.go
parent8836d0744aed44435e35af78d7533ff09db0c62e (diff)
refactor: move key pacakge to cfg
Diffstat (limited to 'app/middleware/id_token.go')
-rw-r--r--app/middleware/id_token.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/middleware/id_token.go b/app/middleware/id_token.go
index a32c77b..da39f43 100644
--- a/app/middleware/id_token.go
+++ b/app/middleware/id_token.go
@@ -5,7 +5,7 @@ import (
"github.com/xlgmokha/x/pkg/log"
"github.com/xlgmokha/x/pkg/x"
- "gitlab.com/gitlab-org/software-supply-chain-security/authorization/sparkled/pkg/key"
+ xcfg "gitlab.com/gitlab-org/software-supply-chain-security/authorization/sparkled/app/cfg"
"gitlab.com/gitlab-org/software-supply-chain-security/authorization/sparkled/pkg/oidc"
)
@@ -43,7 +43,7 @@ func IDToken(cfg *oidc.OpenID) func(http.Handler) http.Handler {
log.WithFields(r.Context(), log.Fields{"id_token": idToken})
next.ServeHTTP(
w,
- r.WithContext(key.IDToken.With(r.Context(), idToken)),
+ r.WithContext(xcfg.IDToken.With(r.Context(), idToken)),
)
return
}