Skip to content

Commit

Permalink
Add Docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
tshak committed Sep 27, 2024
1 parent e74c131 commit 0a5d7ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/v1/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
},
Expand Down

0 comments on commit 0a5d7ed

Please sign in to comment.