From 0a5d7ed13eccc10851478bd81c4c97959b1493eb Mon Sep 17 00:00:00 2001 From: tshak Date: Fri, 27 Sep 2024 15:41:10 -0700 Subject: [PATCH] Add Docker build --- api/v1/routes.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/v1/routes.go b/api/v1/routes.go index 67eceed..123166b 100644 --- a/api/v1/routes.go +++ b/api/v1/routes.go @@ -46,7 +46,8 @@ func RegisterRoutes(e *echo.Echo, repoCache *environment.RepoCache, db *sql.DB) e.Use(middleware.KeyAuthWithConfig(middleware.KeyAuthConfig{ // We will probably use the "Bearer" scheme for OIDC - AuthScheme: "Apikey", + // Hack: Add colon as the old client used a colon. Echo used to support parsing without specifying the colon but a breaking change was introduced + AuthScheme: "Apikey:", Validator: func(apikey string, c echo.Context) (bool, error) { return loginWithApiKey(c, loginService, apikey) },