You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the token is for other API and the http-proxy cannot get the jwk based on the kid, it throws a runtime exception and bubble up to the exception handler. The consumer will receive a 500 error instead of 400 error. It needs to be handled gracefully.
Here is the stack trace.
ERROR c.n.exception.ExceptionHandler:79 handleRequest - Exception:
java.lang.RuntimeException: no JWK for kid: YW45heiZJIz8y64BeDOu5a6v49RkpRMfn42qc8Vdy2E
at com.networknt.security.JwtVerifier.getKeyResolver(JwtVerifier.java:524)
at com.networknt.security.JwtVerifier.verifyJwt(JwtVerifier.java:285)
at com.networknt.security.JwtVerifier.verifyJwt(JwtVerifier.java:193)
at com.networknt.security.AbstractJwtVerifyHandler.handleJwt(AbstractJwtVerifyHandler.java:99)
at com.networknt.security.UnifiedSecurityHandler.verifyUnifiedSecurity(UnifiedSecurityHandler.java:229)
at com.networknt.security.UnifiedSecurityHandler.handleRequest(UnifiedSecurityHandler.java:55)
at com.networknt.handler.Handler.next(Handler.java:211)
at com.networknt.handler.Handler.next(Handler.java:231)
at com.networknt.openapi.OpenApiHandler.handleRequest(OpenApiHandler.java:251)
at com.networknt.handler.Handler.next(Handler.java:211)
at com.networknt.handler.Handler.next(Handler.java:231)
at com.networknt.router.SidecarRouterHandler.handleRequest(SidecarRouterHandler.java:78)
at com.networknt.handler.Handler.next(Handler.java:211)
at com.networknt.handler.Handler.next(Handler.java:231)
at com.networknt.audit.AuditHandler.next(AuditHandler.java:200)
at com.networknt.audit.AuditHandler.handleRequest(AuditHandler.java:188)
at com.networknt.handler.Handler.next(Handler.java:229)
at
The text was updated successfully, but these errors were encountered:
If the token is for other API and the http-proxy cannot get the jwk based on the kid, it throws a runtime exception and bubble up to the exception handler. The consumer will receive a 500 error instead of 400 error. It needs to be handled gracefully.
Here is the stack trace.
The text was updated successfully, but these errors were encountered: