harbor/src/server
Antoine Jouve 73c2884e58
[Token/JWT] Update to golang-jwt v5.2.0 (#19802)
* feat: update to golang-jwt v5.2.0

Signed-off-by: Antoine Jouve <ant.jouve@gmail.com>

* fix: module issues and robot claims

Signed-off-by: Antoine Jouve <ant.jouve@gmail.com>

* fix: add missing time import

Signed-off-by: Antoine Jouve <ant.jouve@gmail.com>

* feat: set jwt validation leeway to 60s

Signed-off-by: Antoine Jouve <ant.jouve@gmail.com>

* fix: update leeways that were still set to 10s

Signed-off-by: Antoine Jouve <ant.jouve@gmail.com>

* feat: update go.sum

Signed-off-by: Antoine Jouve <ant.jouve@gmail.com>

* feat: add two leeway related test cases

Signed-off-by: Antoine Jouve <ant.jouve@gmail.com>

* fix: correct jwt audience validation

Signed-off-by: Antoine Jouve <ant.jouve@gmail.com>

* fix: gofmt v2_token.go

Signed-off-by: Antoine Jouve <ant.jouve@gmail.com>

* feat: take into account review comments

Signed-off-by: Antoine Jouve <ant.jouve@gmail.com>

* feat: use a common constant to store JWT leeway

Signed-off-by: Antoine Jouve <ant.jouve@gmail.com>

---------

Signed-off-by: Antoine Jouve <ant.jouve@gmail.com>
Signed-off-by: Antoine Jouve <an-toine@users.noreply.github.com>
Co-authored-by: MinerYang <yminer@vmware.com>
2024-02-23 11:30:13 +08:00
..
handler Don't ignore the NotFoundErr when handling the status hook of tasks to avoid the status out of sync 2021-01-20 14:53:50 +08:00
middleware [Token/JWT] Update to golang-jwt v5.2.0 (#19802) 2024-02-23 11:30:13 +08:00
registry bump golang 1.21.5 & fix golangci-lint error (#19722) 2023-12-19 09:41:26 +08:00
router bump beego (#17801) 2022-11-24 18:07:42 +08:00
v2.0 Update isValidDuration function (#19843) 2024-01-17 08:41:45 +00:00
route.go bump golang 1.21.5 & fix golangci-lint error (#19722) 2023-12-19 09:41:26 +08:00
server.go Bump up the version of legacy APIs to v2.0 2020-02-14 13:16:30 +08:00
version.go bump golang 1.21.5 & fix golangci-lint error (#19722) 2023-12-19 09:41:26 +08:00