mirror of
https://tangled.org/evan.jarrett.net/at-container-registry
synced 2026-09-20 01:04:15 +00:00
auth/token needs GET
This commit is contained in:
@@ -393,7 +393,7 @@ func serveRegistry(cmd *cobra.Command, args []string) error {
|
||||
return nil // All errors are non-fatal
|
||||
})
|
||||
|
||||
mainRouter.Post("/auth/token", tokenHandler.ServeHTTP)
|
||||
mainRouter.Get("/auth/token", tokenHandler.ServeHTTP)
|
||||
|
||||
// Device authorization endpoints (public)
|
||||
mainRouter.Handle("/auth/device/code", &uihandlers.DeviceCodeHandler{
|
||||
|
||||
@@ -213,8 +213,3 @@ func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
// RegisterRoutes registers the token handler with the provided mux
|
||||
func (h *Handler) RegisterRoutes(mux *http.ServeMux) {
|
||||
mux.Handle("/auth/token", h)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user