From 434abebd87fa5b7ea1f5815360794559a05620af Mon Sep 17 00:00:00 2001 From: docooler Date: Tue, 22 Oct 2024 16:07:51 +0800 Subject: [PATCH] support docker registry 2.8.x version which not support auto redirect path --- 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: