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 validate users on an API using JSON Web Token

SA-65421

Summary



Unable to validate users on an API using JSON Web Token (JWT) tokens.
The Authentication Bearer is not passed to Pega on selecting 'Custom' as authentication type. It is only passed on selecting 'OAuth 2.0', with OAuth tokens.


Error Messages



Not Applicable.


Steps to Reproduce



Unknown.


Root Cause



A defect or configuration issue in the operating environment.


Resolution

Perform the following local-change: 

Retrieve the custom header in the authentication activity with a Property-Set as below:

Param.value=@java("((javax.servlet.http.HttpServletRequest)tools.getRequestor().getRequestorPage().getObject(\"pxHTTPServletRequest\")).getHeader(\"tes\")")

Here, HTTP header is set as 'test'. 




 
Suggest Edit

Published August 19, 2019 - Updated October 8, 2020

Did you find this content helpful? Yes No

Have a question? Get answers now.

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

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