10-05-23 12:41 PM
Hi All,
I'm trying to integrate ALM API (3rd party tool) with Blue Prism, to automate the creation/deletion of user. I have created a service in BP web API service and created few actions like Login ALM and getting user details from ALM, able to connect ALM API and getting status as 200 and getting the below token as well.
1.LWSSO_COOKIE_KEY
2.QCSession
3.ALM_USER
4.XSRF-TOKEN
But when i tried to run the Get User query, getting some authentication error here i'm using the same query which is running fine in postman. Could you please help me on this.
Please suggest how we can pass the session token while running Get User action.
Thanks in Advance.
10-05-23 01:10 PM
Hi Malarvizhi,
A screenshot of your POSTMAN vs Blue Prism configuration will greatly help to debug this.
11-05-23 08:25 AM
Hi Shashank,
Thanks for the response. Please find the attached screenshots from Postman and Blue Prism.
For Login ALM in BP, we are passing header as content-type: application/json.
Please help on how to pass header for calling get user action.
11-05-23 09:04 AM
Hi Malarvizhi,
Just to clarify, you are able to run the login action via Blue Prism and Get user action is failing. Is this correct?
11-05-23 11:45 AM
Yes, correct Shashank. Getting below error while running get user action.
Internal : Unexpected error Error during Web API HTTP Request
HTTP Status Code: 401
HTTP Response Content: <html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Error 401 Authentication failed. Browser based integrations - to login append '?login-form-required=y' to the url you tried to access.</title>
</head>
<body><h2>HTTP ERROR 401</h2>
<p>Problem accessing /qcbin/v2/sa/api/site-users/UserID. Reason:
<pre> Authentication failed. Browser based integrations - to login append '?login-form-required=y' to the url you tried to access.</pre></p>
</body>
</html>
------------------------------
Malarvizhi Loganathan
------------------------------
11-05-23 04:26 PM
Hi Malarvizhi ,
You will have to call the login action from a Blue Prism process. You will get the response tokens in Data Items of the process.
From the process then call the Get user action passing in the required tokens as parameters.
Have you included the same headers as POSTMAN in Get user action of Blue Prism?
------------------------------
Shashank Kumar
DX Integrations Partner Consultant
Blue Prism
Singapore
+6581326707
------------------------------
15-05-23 07:46 AM
Hi Shashank,
Thanks for the response.
In BP, doing the same what you have suggested but getting auth error.
In POSTMAN, we are not passing any header. It's automatically connecting to the session created while login.
------------------------------
Thanks & Regards,
Malarvizhi Loganathan
------------------------------