Question

How to retrieve pega.reset.username and pega.rest.password

I am reposting the question from the group since there is not answer to the below question. I have an exact same scenario.

Hi Team,

I am working in Pega 7.3 Deployment automation functionality where in I have a requirement to implement the custom authentication in System Management Import service call. Import service getting called from prpcServiceUtils. By Default System Management package supports Basic authentication however i need to implement custom authentication ( I need to compare incoming the User and pwd from a different Source). So i have updated System Management package Authentication type to custom and trying to fetch the username and Password in Authentication service activity.

I verified the HTTPServlet Request Authorization Header it is blank. Through prpcServiceUtils script username and password will be passed in pega.reset.username and pega.rest.password respectively. Can someone pls let me know the java code to retrieve these params in Authentication activity.

***Updated by moderator: Lochan to add Categories***

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

Correct Answer
March 26, 2018 - 9:02pm

Following changes needs to be done.

1)Within Authentication service(Which is configured in SystemManagement service package) - Custom Tab

Challenge Options

Use Basic authentication for signon - Should be checked.

2) Source Of Operator Credentials

Use Externally stored credentials 

3) Within Authentication activity -Step1

Check condition param.UserIDentifier = "" || param.password == ""

If above condition true set param.pyChallenge = @java("PRAuthentication.DEFAULT_CHALLENGE")

Else continue with custom authentication logic

 

Comments

Keep up to date on this post and subscribe to comments

March 26, 2018 - 2:36pm

Any pointers on this

March 26, 2018 - 9:02pm

Following changes needs to be done.

1)Within Authentication service(Which is configured in SystemManagement service package) - Custom Tab

Challenge Options

Use Basic authentication for signon - Should be checked.

2) Source Of Operator Credentials

Use Externally stored credentials 

3) Within Authentication activity -Step1

Check condition param.UserIDentifier = "" || param.password == ""

If above condition true set param.pyChallenge = @java("PRAuthentication.DEFAULT_CHALLENGE")

Else continue with custom authentication logic

 

March 27, 2018 - 2:26am
Response to SrinivasS2132

Thanks Srinivas. Does this option worked for you? any change required in the serviceutils script ?

March 27, 2018 - 10:01am
Response to ManjunathaM6763

It worked, without any changes in serviceutils script.

March 29, 2018 - 12:46pm
Response to SrinivasS2132

Thanks srinivas. It worked.

November 22, 2018 - 8:49am

hi Srirnivas,

is there any way to find the trace of a LDAP Authentication Activity during RunTime.

Thanks

Dileep.N