Posted: 12 Mar 2016 19:59 EST Last activity: 23 May 2016 9:52 EDT
pega.getAuthenticationHandle().performAuthentication() doesnt work as expected after upgrade
Hi All - We recently upgraded to 7.1.9 from 7.1.5 and now pega.getAuthenticationHandle().performAuthentication() method is always returning true.
We have existing REST service which accepts credential in Post method body and in service activity we are trying to authenticate user which is always returning true whether user id is correct or not and whether password is correct or not. Same service is working as expected in the environment where we didn't upgrade yet.
I also tried using Authentication (BASIC - Use TLS/SSL (REST only))at service package level after upgrade as an alternative to above approach to have authentication at service level but it didn't work and I kept getting 401- Authenticated error from Mozilla REST client as shown below:
Status Code: 401 Unauthorized
Content-Type: text/html; charset=UTF-8
Date: Sun, 13 Mar 2016 00:51:18 GMT
WWW-Authenticate: Basic realm="PegaRULES"
X-Powered-By: Servlet/2.5 JSP/2.1
Could someone let me know if something changed regarding pega.getAuthenticationHandle().performAuthentication()API in 7.1.9 and if not supported now then I will try to debug more about authentication at service package level.
Thank you Kevin Zheng!! I sent you a message with log details, I could not post here as it has some sensitive information. Please let me know if it give you some clue on the issue. The log entries which I sent you is when I tried hitting my Rest service from Rest client with credentials in message post body.
I do not see any 401 in the log. I wonder if the same behavior if you use soapui tool. If that is the case, this may be related some of other components other than pega. Are you using load balancer url any web server involved? From the log, it appears that you are running F5 with weblogic? If you can provide some details regarding your env topology, that would help.
Thanks Kevin Zheng for your response! The logs I provided you was for the existing REST service where we are authenticating userid using pega.getAuthenticationHandle().performAuthentication() method in REST service activity using attributes received in POST method body.
401 error I get when I try to enable authentication at service package level as an alternative to my existing approach mentioned above using performAuthentication API.
I see. To confirm if there is a potential defect or not, simply write a simple java step to call the api with hard-coded user/password in both 7.1.9 and 7.1.5 envs. If the behavior is still the same, then open a SR with GCS to further investigate.
Hi Kevin Zheng - I already tested it and as I already mentioned in my original post that same service is working fine from authentication perspective in the environments where we did not upgrade till now. So do you thing this issue is a potential bug? One more thing after upgrade we change the password hashing algorithm from default MD5 to SHA-512, do you thing if this has anything to do with the issue which I am facing?