Posted: 22 Feb 2021 5:49 EST 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 sun.reflect.GeneratedMethodAccessor52.invoke(Unknown Source)
Caused by: com.pega.pegarules.pub.PRRuntimeException: No failure response set by custom authentication activity
@MarcLasserre_GCS Thanks Marc. Yes, I had looked at this before posting mine. Mine's a production scenario where all the requests were getting processed fine until yesterday. Today onwards all the requests are failing consistently with the above exception. For the time being we have disabled the authentication.
But the RCA and fix is needed. If it's already a known issue, then it would be helpful for me to further debug and fix.