From 33981e04bebe39c16d3bbb3af84c8772b00102fd Mon Sep 17 00:00:00 2001 From: mo khan Date: Fri, 25 Apr 2025 10:56:48 -0600 Subject: refactor: move Repository interface to domain --- pkg/web/middleware/user.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'pkg/web') 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()) -- cgit v1.2.3