diff options
Diffstat (limited to 'pkg/web/middleware')
| -rw-r--r-- | pkg/web/middleware/user.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pkg/web/middleware/user.go b/pkg/web/middleware/user.go index 68d2daa..1e46187 100644 --- a/pkg/web/middleware/user.go +++ b/pkg/web/middleware/user.go @@ -6,13 +6,12 @@ import ( "github.com/xlgmokha/x/pkg/log" "github.com/xlgmokha/x/pkg/mapper" "github.com/xlgmokha/x/pkg/x" - "gitlab.com/gitlab-org/software-supply-chain-security/authorization/sparkled/pkg/db" "gitlab.com/gitlab-org/software-supply-chain-security/authorization/sparkled/pkg/domain" "gitlab.com/gitlab-org/software-supply-chain-security/authorization/sparkled/pkg/key" "gitlab.com/gitlab-org/software-supply-chain-security/authorization/sparkled/pkg/oidc" ) -func User(db db.Repository[*domain.User]) func(http.Handler) http.Handler { +func User(db domain.Repository[*domain.User]) func(http.Handler) http.Handler { return func(next http.Handler) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { idToken := key.IDToken.From(r.Context()) |
