Question
Standard Chartered Bank
IN
Last activity: 22 Feb 2021 6:32 EST
Custom authentication in Service Package is failing
We have a custom authentication for few of our REST apis where we are validating the JWT token passed in the header. If validation succeeds then only we are allowing the further processing of the request.
It was all working fine. Today onwards, we are seeing below exception in the logs and the requests are not getting fulfilled. For the time being we have unchecked the authentication in service package.
What could be the reason? I am able to validate the token received (we are logging incoming token in log file) externally using same activity so don't think token validation is failing.
failed:Service requestor could not be authenticated:com.pega.pegarules.pub.services.ServiceException: Service requestor could not be authenticated at com.pega.pegarules.integration.engine.internal.services.ServiceAPI.handleAuthentication(ServiceAPI.java:1570) at com.pega.pegarules.session.external.engineinterface.service.EngineAPI.activityExecutionProlog(EngineAPI.java:562) at com.pega.pegarules.session.external.engineinterface.service.EngineAPI.processRequestInner(EngineAPI.java:401) at sun.reflect.GeneratedMethodAccessor52.invoke(Unknown Source)
We have a custom authentication for few of our REST apis where we are validating the JWT token passed in the header. If validation succeeds then only we are allowing the further processing of the request.
It was all working fine. Today onwards, we are seeing below exception in the logs and the requests are not getting fulfilled. For the time being we have unchecked the authentication in service package.
What could be the reason? I am able to validate the token received (we are logging incoming token in log file) externally using same activity so don't think token validation is failing.
failed:Service requestor could not be authenticated:com.pega.pegarules.pub.services.ServiceException: Service requestor could not be authenticated at com.pega.pegarules.integration.engine.internal.services.ServiceAPI.handleAuthentication(ServiceAPI.java:1570) at com.pega.pegarules.session.external.engineinterface.service.EngineAPI.activityExecutionProlog(EngineAPI.java:562) at com.pega.pegarules.session.external.engineinterface.service.EngineAPI.processRequestInner(EngineAPI.java:401) at sun.reflect.GeneratedMethodAccessor52.invoke(Unknown Source)
Caused by: com.pega.pegarules.pub.PRRuntimeException: No failure response set by custom authentication activity at com.pega.pegarules.session.internal.mgmt.authentication.SchemePRCustom.onAuthenticationFailure(SchemePRCustom.java:988) at com.pega.pegarules.session.internal.mgmt.authentication.Authentication.doAuthentication(Authentication.java:760)