Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Unable to integrate with SSO Platform Using JWT



Pega application is integrated with an inhouse system that is used to authenticate user credentials (this is based on OAuth 2.0 protocol) for Single Sign-On (SSO) authentication and to route the login page where the user must to provide credentials. However, error occurs after entering the username and password.

Error Messages

There has been an issue; please consult your system administrator


Operator:Unauthenticated or not available

Node:No ID available

Error in the Pega logs: Unable to execute OIDC flow : Caught exception while parsing the id token 
    at com.pega.pegarules.session.internal.mgmt.authentication.SchemePRAuth.authenticateOperator( ~[prprivate.jar:?] 
    at com.pega.pegarules.session.internal.mgmt.authentication.Authentication.doAuthentication( ~[prprivate.jar:?] 
    at com.pega.pegarules.session.internal.engineinterface.service.HTTPAuthenticationHandler.performAuthentication( ~[prprivate.jar:?] 
    at com.pega.pegarules.session.internal.engineinterface.service.HTTPAuthenticationHandler.doHttpReqAuthentication( ~[prprivate.jar:?] 
Caused by: Caught exception while parsing the id token 
    at com.pega.pegarules.integration.engine.internal.sso.oidc.NimbusOIDCClientHandler.processIDToken( ~[printegrint.jar:?] 
    at com.pega.pegarules.integration.engine.internal.sso.oidc.OIDCClientHandler.processIDToken( ~[printegrint.jar:?] 
    at com.pega.pegarules.integration.engine.internal.sso.oidc.OIDCClientHandler.processAuthcodeRes( ~[printegrint.jar:?] 
    at com.pega.pegarules.integration.engine.internal.sso.oidc.OIDCClientHandler.authenticate( ~[printegrint.jar:?] 
    at com.pega.pegarules.session.internal.mgmt.authentication.SchemePRAuth.authenticateOperator( ~[prprivate.jar:?] 

Caused by: Unable to retrieve JWK public key 
    at ~[printegrint.jar:?] 
    at ~[printegrint.jar:?] 
    at com.pega.pegarules.integration.engine.internal.sso.oidc.NimbusOIDCClientHandler.processIDToken( ~[printegrint.jar:?]

Steps to Reproduce

Integrate SSO through the JSON Web Token (JWT).

Root Cause

Pega considered various JWT libraries during design time. Java JSON Web Token (JJWT) and Nimbus are two popular (based on Maven Artifact usage) JWT libraries. However, JJWT does not support JSON Web Encryption (JWE). Therefore, Pega uses Nimbus for both JWS and JWE.


The external system must use Nimbusds API to generate the JWT token.

Published December 2, 2021

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us