Question

2
Replies
77
Views
ShwetaB2746 Member since 2020 12 posts
Ernst & Young LLP
Posted: 1 month ago
Last activity: 1 month 1 week ago
Solved

How to extract the Authorization token from Header in Custom Authentication service activity

Hi All, 

We have an requirement to extract the Authorization token in Custom Authentication service activity

Trying to extract it via the below code in Property-set methods and is deprecated

@java("((javax.servlet.http.HttpServletRequest)tools.getRequestor().getRequestorPage().getObject(\"pxHTTPServletRequest\")).getHeader(\"Authorization\")") and throwing the below error:

This record has 1 error(s) in 1 place(s) .

.pySteps(1).pyParamArray(1).PropertiesValue—

The usage of @java in expressions is no longer supported. Consider replacing @java with utility functions or other product features.

 

Any leads?

***Edited by Moderator: Pallavi to update platform capability tags***  

Pega Platform Case Management Security
Share this page LinkedIn