Skip to content

Commit 65d7140

Browse files
go(deps): bump github.com/go-chi/jwtauth/v5 from 5.1.1 to 5.3.2 in /server/src (#4687)
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Mateo Ivankovic <mateo.ivankovic@outlook.com> Co-authored-by: Mateo Ivankovic <mateo.ivankovic@inovex.de>
1 parent 6d03344 commit 65d7140

File tree

5 files changed

+263
-278
lines changed

5 files changed

+263
-278
lines changed

server/src/api/router.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
package api
22

33
import (
4+
"github.com/go-chi/chi/v5"
5+
"github.com/go-chi/chi/v5/middleware"
46
"github.com/markbates/goth/gothic"
57
"net/http"
68
"os"
79
"time"
810

911
"github.com/go-chi/cors"
1012
"github.com/go-chi/httprate"
11-
"github.com/go-chi/jwtauth/v5"
1213
"github.com/go-chi/render"
1314
"github.com/google/uuid"
1415
gorillaSessions "github.com/gorilla/sessions"
@@ -18,9 +19,6 @@ import (
1819
"scrumlr.io/server/logger"
1920
"scrumlr.io/server/realtime"
2021
"scrumlr.io/server/services"
21-
22-
"github.com/go-chi/chi/v5"
23-
"github.com/go-chi/chi/v5/middleware"
2422
)
2523

2624
type Server struct {
@@ -171,7 +169,7 @@ func (s *Server) publicRoutes(r chi.Router) chi.Router {
171169
func (s *Server) protectedRoutes(r chi.Router) {
172170
r.Group(func(r chi.Router) {
173171
r.Use(s.auth.Verifier())
174-
r.Use(jwtauth.Authenticator)
172+
r.Use(s.auth.Authenticator())
175173
r.Use(auth.AuthContext)
176174

177175
r.With(s.BoardTemplateRateLimiter).Post("/templates", s.createBoardTemplate)

0 commit comments

Comments
 (0)