Question

3
Replies
49
Views
Close popover
Mayank Jain (MayankJ2)
Deutsche Bank Operations India
Associate
Deutsche Bank Operations India
IN
MayankJ2 Member since 2015 5 posts
Deutsche Bank Operations India
Posted: November 17, 2020
Last activity: November 23, 2020
Solved

How to authenticate a user in custom authentication activityll,

Hi All

In my application the user is authenticated by an external system. Once successfully authenticated, the request is routed to the Pega application (hosted on Tomcat). In pega application we need to capture the user-Id from the http request header and authenticate the user.

I used a PRCustom servlet and created an authentication service rule. I also created an  authentication activity. I could capture the user-Id from the http header using a simple java code in Param.UserId 

In the next step I did Obj-Open on the operator Id. The page name is 'OperatorPage'.

 Next step is Java - "tools.getParameterPage().putObject("pyOperPage", myStepPage); " *Note Step Page is 'OperatorPage' in the Java step.

All these steps run fine. No errors observed during debug in logs.

At this point I expect the user should get authenticated and presented with their default portal. However, I get the Error screen saying "Operator is unauthenticated or unavailable".

Is there something that I should amend?

Pega Platform 8.4 Case Management Financial Services Senior System Architect