Skip to content

Commit

Permalink
fix: Return next handlerFunc for Ping instead of nil
Browse files Browse the repository at this point in the history
Return next handlerFunc for Ping instead of nil in VaultAuthenticationHandlerFunc.

Signed-off-by: Lindsey Cheng <[email protected]>
  • Loading branch information
lindseysimple committed Jul 26, 2023
1 parent 1888942 commit 58d36b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bootstrap/handlers/auth_middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func VaultAuthenticationHandlerFunc(secretProvider interfaces.SecretProviderExt,
return func(c echo.Context) error {
// Skip the JWT authorization check for Ping request
if c.Path() == common.ApiPingRoute {
return nil
return inner(c)
}

r := c.Request()
Expand Down

0 comments on commit 58d36b8

Please sign in to comment.