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 access username and password in Custom authentication

SA-47184

Summary



Unable to access the username and password in the Custom authentication activity. The HTTPServlet Request Authorization Header displays blank even after updating the System Management package Authentication type to Custom and fetching the username and password in the Authentication service activity.


Error Messages



Error From script side:

401 Unauthorized error



Steps to Reproduce

  1. Update System Management package Authentication Type =Custom
  2. Call import service from prpcServiceUtils.sh


Root Cause



The prpcServiceUtils only supports Basic Authentication. However, an AuthService record on the Custom tab is used which uses Basic Authentication for the Challenge options. On selecting this, the prpcServiceUtils sends the pega.rest.username and pega.rest.password values when the AuthService requires them. The Authentication activity specified in AuthService can access these values through the standard param.UserIdentifier and param.Password parameters.


Resolution

Perform the following local-chane to use custom authentication with prpcServiceUtils:
  1. Select 'Use Basic Authentication for signon' for the Challenge Options:


  2. Perform the Authentication activity. Ensure that the param.UserIdentifier and param.Password are not blank


  3. Enter the Basic Authentication details on the AuthService from the prprcServiceUtils

Published May 23, 2018 - Updated October 8, 2020

Was this useful?

100% found this useful

Have a question? Get answers now.

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

Did you find this content helpful?

Want to help us improve this content?

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