diff options
| author | mo khan <mo@mokhan.ca> | 2025-04-16 16:15:21 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-04-16 16:15:21 -0600 |
| commit | 9e83b4b2e95254ba51c66ed15f400d3bec5712f1 (patch) | |
| tree | ed652b37c614d63b4dada2e580cf8ab5ef7c5864 /app | |
| parent | 3e70d67683e369d0b86db2bf3ff19df84e990710 (diff) | |
feat: attach middleware to unpack session cookie
Diffstat (limited to 'app')
| -rw-r--r-- | app/app.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -11,6 +11,7 @@ import ( "gitlab.com/gitlab-org/software-supply-chain-security/authorization/sparkled/app/controllers/sessions" "gitlab.com/gitlab-org/software-supply-chain-security/authorization/sparkled/app/controllers/sparkles" "gitlab.com/gitlab-org/software-supply-chain-security/authorization/sparkled/pkg/web" + "gitlab.com/gitlab-org/software-supply-chain-security/authorization/sparkled/pkg/web/middleware" ) func New() http.Handler { @@ -29,5 +30,5 @@ func New() http.Handler { mux.Handle("GET /", http.FileServer(http.Dir("public"))) logger := ioc.MustResolve[*zerolog.Logger](ioc.Default) - return log.HTTP(logger)(mux) + return log.HTTP(logger)(middleware.UnpackToken()(mux)) } |
