Skip to content

Commit

Permalink
dependencies: upgrade JWT version to v5 due to CVE-2024-51744
Browse files Browse the repository at this point in the history
  • Loading branch information
isogram authored and agungdwiprasetyo committed Nov 19, 2024
1 parent 7c0f5a7 commit a557071
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions candishared/token_claim_payload.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package candishared

import "github.com/golang-jwt/jwt"
import "github.com/golang-jwt/jwt/v5"

// TokenClaim for token claim data
type TokenClaim struct {
jwt.StandardClaims
Role string `json:"role"`
Additional any `json:"additional"`
jwt.RegisteredClaims
Role string `json:"role"`
Additional any `json:"additional"`
}
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
module github.com/golangid/candi

go 1.23
go 1.23.3

require (
github.com/IBM/sarama v1.43.3
github.com/gertd/go-pluralize v0.2.1
github.com/go-chi/chi/v5 v5.1.0
github.com/go-playground/validator/v10 v10.11.2
github.com/golang-jwt/jwt v3.2.2+incompatible
github.com/golang-jwt/jwt/v5 v5.2.1
github.com/golangid/candi-plugin/task-queue-worker v0.0.0-20241022081437-59f56be28160
github.com/golangid/gojsonschema v0.0.1
github.com/golangid/graphql-go v0.0.9
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ github.com/go-playground/universal-translator v0.18.1 h1:Bcnm0ZwsGyWbCzImXv+pAJn
github.com/go-playground/universal-translator v0.18.1/go.mod h1:xekY+UJKNuX9WP91TpwSH2VMlDf28Uj24BCp08ZFTUY=
github.com/go-playground/validator/v10 v10.11.2 h1:q3SHpufmypg+erIExEKUmsgmhDTyhcJ38oeKGACXohU=
github.com/go-playground/validator/v10 v10.11.2/go.mod h1:NieE624vt4SCTJtD87arVLvdmjPAeV8BQlHtMnw9D7s=
github.com/golang-jwt/jwt v3.2.2+incompatible h1:IfV12K8xAKAnZqdXVzCZ+TOjboZ2keLg81eXfW3O+oY=
github.com/golang-jwt/jwt v3.2.2+incompatible/go.mod h1:8pz2t5EyA70fFQQSrl6XZXzqecmYZeUEB8OUGHkxJ+I=
github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk=
github.com/golang-jwt/jwt/v5 v5.2.1/go.mod h1:pqrtFR0X4osieyHYxtmOUWsAWrfe1Q5UVIyoH402zdk=
github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0/go.mod h1:E/TSTwGwJL78qG/PmXZO1EjYhfJinVAhrmmHX6Z8B9k=
github.com/golang/snappy v0.0.4 h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM=
github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
Expand Down

0 comments on commit a557071

Please sign in to comment.