From 48e07e9ecd895df692d54e99da8883189d82ab93 Mon Sep 17 00:00:00 2001 From: docooler Date: Wed, 1 Jan 2025 06:29:46 +0800 Subject: [PATCH] support docker registry 2.8.x version which not support auto redirect path (#397) --- auth_server/server/server.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/auth_server/server/server.go b/auth_server/server/server.go index 2592b533..7c53dc16 100644 --- a/auth_server/server/server.go +++ b/auth_server/server/server.go @@ -436,6 +436,8 @@ func (as *AuthServer) ServeHTTP(rw http.ResponseWriter, req *http.Request) { as.doIndex(rw, req) case req.URL.Path == path_prefix+"/auth": as.doAuth(rw, req) + case req.URL.Path == path_prefix+"/auth/token": + as.doAuth(rw, req) case req.URL.Path == path_prefix+"/google_auth" && as.ga != nil: as.ga.DoGoogleAuth(rw, req) case req.URL.Path == path_prefix+"/github_auth" && as.gha != nil: