Skip to content

Commit 68aaffe

Browse files
isogramagungdwiprasetyo
authored andcommitted
dependencies: upgrade JWT version to v5 due to CVE-2024-51744
1 parent f9f8aca commit 68aaffe

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

candishared/token_claim_payload.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
package candishared
22

3-
import "github.com/golang-jwt/jwt"
3+
import "github.com/golang-jwt/jwt/v5"
44

55
// TokenClaim for token claim data
66
type TokenClaim struct {
7-
jwt.StandardClaims
8-
Role string `json:"role"`
9-
Additional any `json:"additional"`
7+
jwt.RegisteredClaims
8+
Role string `json:"role"`
9+
Additional any `json:"additional"`
1010
}

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
module github.com/golangid/candi
22

3-
go 1.23
3+
go 1.23.3
44

55
require (
66
github.com/IBM/sarama v1.43.3
77
github.com/gertd/go-pluralize v0.2.1
88
github.com/go-chi/chi/v5 v5.1.0
99
github.com/go-playground/validator/v10 v10.11.2
10-
github.com/golang-jwt/jwt v3.2.2+incompatible
10+
github.com/golang-jwt/jwt/v5 v5.2.1
1111
github.com/golangid/candi-plugin/task-queue-worker v0.0.0-20241022081437-59f56be28160
1212
github.com/golangid/gojsonschema v0.0.1
1313
github.com/golangid/graphql-go v0.0.9

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ github.com/go-playground/universal-translator v0.18.1 h1:Bcnm0ZwsGyWbCzImXv+pAJn
3131
github.com/go-playground/universal-translator v0.18.1/go.mod h1:xekY+UJKNuX9WP91TpwSH2VMlDf28Uj24BCp08ZFTUY=
3232
github.com/go-playground/validator/v10 v10.11.2 h1:q3SHpufmypg+erIExEKUmsgmhDTyhcJ38oeKGACXohU=
3333
github.com/go-playground/validator/v10 v10.11.2/go.mod h1:NieE624vt4SCTJtD87arVLvdmjPAeV8BQlHtMnw9D7s=
34-
github.com/golang-jwt/jwt v3.2.2+incompatible h1:IfV12K8xAKAnZqdXVzCZ+TOjboZ2keLg81eXfW3O+oY=
35-
github.com/golang-jwt/jwt v3.2.2+incompatible/go.mod h1:8pz2t5EyA70fFQQSrl6XZXzqecmYZeUEB8OUGHkxJ+I=
34+
github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk=
35+
github.com/golang-jwt/jwt/v5 v5.2.1/go.mod h1:pqrtFR0X4osieyHYxtmOUWsAWrfe1Q5UVIyoH402zdk=
3636
github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0/go.mod h1:E/TSTwGwJL78qG/PmXZO1EjYhfJinVAhrmmHX6Z8B9k=
3737
github.com/golang/snappy v0.0.4 h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM=
3838
github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=

0 commit comments

Comments
 (0)