harbor/src/server/middleware
Daniel Jiang fb687aeef8 Use pkg/token to generate JWT token
This commit refactors the approach to encode a token in handler of /service/token,
by reusing pkg/token to avoid inconsistency.

Signed-off-by: Daniel Jiang <jiangd@vmware.com>
2020-10-15 16:16:44 +08:00
..
apiversion Relocate/rename some packages (#11183) 2020-03-24 20:45:45 +08:00
artifactinfo Limit the permission of secret used by proxy cache service 2020-07-27 10:15:00 +08:00
blob revise the blob logs 2020-07-29 12:45:30 +08:00
contenttrust Check the tag in isArtifactSigned func 2020-09-05 17:00:55 +08:00
csrf Store csrf token in the header of response instead of cookie 2020-08-20 15:46:02 +08:00
immutable move send error to source lib (#12175) 2020-06-19 01:04:50 +08:00
log move logger from common to lib 2020-04-02 14:09:03 +08:00
notification Relocate/rename some packages (#11183) 2020-03-24 20:45:45 +08:00
orm Relocate/rename some packages (#11183) 2020-03-24 20:45:45 +08:00
quota fix(quota): change log to debug level when warning not found 2020-08-24 07:55:46 +00:00
readonly move send error to source lib (#12175) 2020-06-19 01:04:50 +08:00
repoproxy feat(project): ignore enable_content_trust for proxy project 2020-09-02 15:24:45 +00:00
requestid feat(beego): upgrade beego to v1.12 which support middleware (#10524) 2020-01-20 16:41:49 +08:00
security Use pkg/token to generate JWT token 2020-10-15 16:16:44 +08:00
session Relocate/rename some packages (#11183) 2020-03-24 20:45:45 +08:00
transaction move send error to source lib (#12175) 2020-06-19 01:04:50 +08:00
util feat(scan): revert bearer token support for scanner 2020-04-11 08:45:29 +00:00
v2auth Return basic auth challenge for /v2/_catalog (#12956) 2020-09-03 11:31:57 +08:00
vulnerable refactor(scan): remove duplicate CVESet types 2020-08-18 06:33:17 +00:00
middleware_test.go feat(beego): upgrade beego to v1.12 which support middleware (#10524) 2020-01-20 16:41:49 +08:00
middleware.go move send error to source lib (#12175) 2020-06-19 01:04:50 +08:00
skipper_test.go feat(middleware): add transaction middleware for v2 and v2.0 APIs 2020-01-22 05:00:39 +00:00
skipper.go feat(quota): add Request and Refresh middlewares for APIs (#10907) 2020-03-11 22:25:40 +08:00