Question

3
Replies
1424
Views
GokhanKuzu Member since 2012 9 posts
CapGemini
Posted: 2 years ago
Last activity: 2 years 8 months ago
Closed
Solved

JWT Token Validation Fails

When we send jwt to request a token from oauth2 service it throws internal server error. We use new functionality of PEga to generate and validate JWT. I see in the log that it is parsed correctly but it throws the exception below. Is anyone used this functionality in Pega 7.3.1 for generation and validation of JWT ? Do you have any idea what can cause the problem.

Regards,

Unable to retrieve Operator Page

2018-02-07 16:04:06,927 [enssl-nio-443-exec-4] [ STANDARD] [ ] [ LoanOrigNL:01.01.01] (.cxf.PegaJWTBearerGrantHandler) ERROR dc-lo-poc-vm001.westeurope.cloudapp.azure.com|213.86.41.194 Gokhan - Identity Exception occurred while generating OAuth access token:
com.pega.pegarules.integration.engine.internal.services.IdentityMapperException: Internal server error.
at com.pega.pegarules.integration.engine.internal.services.oauth2.jwt.cxf.JWTIdentityMapper.establishSubject(JWTIdentityMapper.java:92) ~[printegrint.jar:?]
at com.pega.pegarules.integration.engine.internal.services.oauth2.jwt.cxf.PegaJWTBearerGrantHandler.createAccessToken(PegaJWTBearerGrantHandler.java:107) ~[printegrint.jar:?]
at org.apache.cxf.rs.security.oauth2.services.AccessTokenService.handleTokenRequest(AccessTokenService.java:114) ~[cxf-rt-rs-security-oauth2-3.0.13.jar:?]
at com.pega.pegarules.integration.engine.internal.services.oauth2.cxf.OAuth2AccessTokenCXFServiceImpl.handleTokenRequest(OAuth2AccessTokenCXFServiceImpl.java:94) ~[printegrint.jar:?]
at com.pegarules.generated.activity.sh_action_pzoauth2generateaccesstoken_2b64b0cf6c0958ea24c8a48037cb158b.step2_circum0(sh_action_pzoauth2generateaccesstoken_2b64b0cf6c0958ea24c8a48037cb158b.java:303) ~[?:?]
at com.pegarules.generated.activity.sh_action_pzoauth2generateaccesstoken_2b64b0cf6c0958ea24c8a48037cb158b.perform(sh_action_pzoauth2generateaccesstoken_2b64b0cf6c0958ea24c8a48037cb158b.java:91) ~[?:?]
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3597) ~[prprivate.jar:?]
at com.pega.pegarules.session.internal.mgmt.Executable.doAction(Executable.java:3330) ~[prprivate.jar:?]
at com.pegarules.generated.activity.ra_action_pyrunrecordexecute_f7d1e1c1513eef165c7ecbe136f3addd.step2_circum0(ra_action_pyrunrecordexecute_f7d1e1c1513eef165c7ecbe136f3addd.java:249) ~[?:?]
at com.pegarules.generated.activity.ra_action_pyrunrecordexecute_f7d1e1c1513eef165c7ecbe136f3addd.perform(ra_action_pyrunrecordexecute_f7d1e1c1513eef165c7ecbe136f3addd.java:88) ~[?:?]
Data Integration Security
Moderation Team has archived post
Share this page LinkedIn