Skip to content

Commit

Permalink
go(deps): bump github.com/go-chi/jwtauth/v5 from 5.1.1 to 5.3.2 in /s…
Browse files Browse the repository at this point in the history
…erver/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>
  • Loading branch information
3 people authored Jan 7, 2025
1 parent 6d03344 commit 65d7140
Show file tree
Hide file tree
Showing 5 changed files with 263 additions and 278 deletions.
8 changes: 3 additions & 5 deletions server/src/api/router.go
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
package api

import (
"github.com/go-chi/chi/v5"
"github.com/go-chi/chi/v5/middleware"
"github.com/markbates/goth/gothic"
"net/http"
"os"
"time"

"github.com/go-chi/cors"
"github.com/go-chi/httprate"
"github.com/go-chi/jwtauth/v5"
"github.com/go-chi/render"
"github.com/google/uuid"
gorillaSessions "github.com/gorilla/sessions"
Expand All @@ -18,9 +19,6 @@ import (
"scrumlr.io/server/logger"
"scrumlr.io/server/realtime"
"scrumlr.io/server/services"

"github.com/go-chi/chi/v5"
"github.com/go-chi/chi/v5/middleware"
)

type Server struct {
Expand Down Expand Up @@ -171,7 +169,7 @@ func (s *Server) publicRoutes(r chi.Router) chi.Router {
func (s *Server) protectedRoutes(r chi.Router) {
r.Group(func(r chi.Router) {
r.Use(s.auth.Verifier())
r.Use(jwtauth.Authenticator)
r.Use(s.auth.Authenticator())
r.Use(auth.AuthContext)

r.With(s.BoardTemplateRateLimiter).Post("/templates", s.createBoardTemplate)
Expand Down
Loading

0 comments on commit 65d7140

Please sign in to comment.