skip jwt token auth if privateKey is empty

This commit is contained in:
Mitsuhiro Tanda authored and Erik Sundell committed 2018-10-22 16:03:12 +02:00
1 parent 43aa6603a3
commit fbe0ffd10b
1 file changed
+1 -1
+1 -1
View File
@@ -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 {