diff options
author | harryzcy <harry@harryzheng.com> | 2023-07-19 04:57:10 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-19 09:57:10 +0000 |
commit | 0f9f6567bb8117dbc23f2cbc664c40a4816eb326 (patch) | |
tree | c602034c3c7aef7700189a58a6f2049bf63c5e5b /go.mod | |
parent | 50e14699d3951ece4b9eb3f72cb266056e799f63 (diff) | |
download | gitea-0f9f6567bb8117dbc23f2cbc664c40a4816eb326.tar.gz gitea-0f9f6567bb8117dbc23f2cbc664c40a4816eb326.zip |
Bump github.com/golang-jwt/jwt to v5 (#25975)
Bumping `github.com/golang-jwt/jwt` from v4 to v5.
`github.com/golang-jwt/jwt` v5 is bringing some breaking changes:
- standard `Valid()` method on claims is removed. It's replaced by
`ClaimsValidator` interface implementing `Validator()` method instead,
which is called after standard validation. Gitea doesn't seem to be
using this logic.
- `jwt.Token` has a field `Valid`, so it's checked in `ParseToken`
function in `services/auth/source/oauth2/token.go`
---------
Co-authored-by: Giteabot <teabot@gitea.io>
Diffstat (limited to 'go.mod')
-rw-r--r-- | go.mod | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -49,12 +49,12 @@ require ( github.com/go-sql-driver/mysql v1.7.1 github.com/go-swagger/go-swagger v0.30.5 github.com/go-testfixtures/testfixtures/v3 v3.9.0 - github.com/go-webauthn/webauthn v0.8.4 + github.com/go-webauthn/webauthn v0.8.6 github.com/gobwas/glob v0.2.3 github.com/gogs/chardet v0.0.0-20211120154057-b7413eaefb8f github.com/gogs/cron v0.0.0-20171120032916-9f6c956d3e14 github.com/gogs/go-gogs-client v0.0.0-20210131175652-1d7215cd8d85 - github.com/golang-jwt/jwt/v4 v4.5.0 + github.com/golang-jwt/jwt/v5 v5.0.0 github.com/google/go-github/v53 v53.2.0 github.com/google/pprof v0.0.0-20230705174524-200ffdc848b8 github.com/google/uuid v1.3.0 @@ -196,6 +196,7 @@ require ( github.com/go-openapi/validate v0.22.1 // indirect github.com/go-webauthn/x v0.1.4 // indirect github.com/goccy/go-json v0.10.2 // indirect + github.com/golang-jwt/jwt/v4 v4.5.0 // indirect github.com/golang-sql/civil v0.0.0-20220223132316-b832511892a9 // indirect github.com/golang-sql/sqlexp v0.1.0 // indirect github.com/golang/geo v0.0.0-20230421003525-6adc56603217 // indirect |