Commit fbe0ffd1 by Mitsuhiro Tanda Committed by Erik Sundell

skip jwt token auth if privateKey is empty

parent 43aa6603
......@@ -55,7 +55,7 @@ func ApplyRoute(ctx context.Context, req *http.Request, proxyPath string, route
}
}
if route.JwtTokenAuth != nil {
if route.JwtTokenAuth != nil && len(ds.SecureJsonData["privateKey"]) != 0 {
if token, err := tokenProvider.getJwtAccessToken(ctx, data); err != nil {
logger.Error("Failed to get access token", "error", err)
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment