cancel
Showing results for 
Search instead for 
Did you mean: 

Resource PC Command Getauthtoken

SandeepC
Level 3

I am referring to the page:

https://bpdocs.blueprism.com/bp-6-8/en-us/helpResourcePCCommands.htm?tocpath=Interface%7CAdvanced%20options%7C_____4

I can see that BP provides various resource PC commands including creating and running a session via api.
To run a process in resource PC we need to pass a token which we will get via the /getauthtoken command as mentioned in the above page.

But I am getting an invalid parameter error when I pass the request as below:

Request : http://192.168.0.123:8181/user%20name%20admin&password%20admin321&getauthtoken%20C7FXXXXX-XXXX-4804-9AAD-5284E5XXXXXX%20admin321


C7FXXXXX-XXXX-4804-9AAD-5284E5XXXXXX is the user ID

Response : 

USER SET
USER AUTHENTICATED
INVALID PARAMETERS

Can someone tell me what is wrong here?


I have also checked various other options below:

Request:
http://192.168.0.123:8181/user%20name%20admin&password%20admin321&getauthtoken%20name%20admin%20admin321

Response:
USER SET
USER AUTHENTICATED
Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).

I have passed the user name instead of user ID still it does not work.

Can someone help me with this?



------------------------------
Sandeep C
IPA Specialist
Telstra
Asia/Bangalore
------------------------------
13 REPLIES 13

@SD,

Ok, so after you get the auth token in AutomateC what sequence of commands are you using in the browser/telnet? Here's the general flow I use to delete a pending session across different interaction channels.

From the Browser Only
http://127.0.0.1:8181/user%20name%20[USERNAME]&password%20[USER PASS]
http://127.0.0.1:8181/proclist
http://127.0.0.1:8181/status
http://127.0.0.1:8181/getauthtoken%20[PROC ID]%20[USER ID]%20[USER PASS]
http://127.0.0.1:8181/deleteas%20[AUTH TOKEN]%20[PEND SESSION ID]


Telnet Only

telnet 127.0.0.1 8181
user name [USERNAME]
password [USER PASS]
proclist
status
getauthtoken [PROC ID] [USER ID] [USER PASS]
deleteas [AUTH TOKEN] [PEND SESSION ID]
​


It looks like the token created with AutomateC using the /getauthtoken option can only be used with the internalauth command on the browser or telnet connection.

Cheers,


------------------------------
Eric Wilson
Director, Partner Integrations for Digital Exchange
Blue Prism
------------------------------

Hi Eric, 
thank you for the step by step instructions. Telnet seems to work now. This telnet workflow works for me: 
elnet 127.0.0.1 8181
user name [USERNAME]
password [USER PASS]
proclist
status
getauthtoken [PROC ID] [USER ID] [USER PASS]
deleteas [AUTH TOKEN] [PEND SESSION ID] ​

[USER PASS] was not required. 

The browser flow seems not to work for me. As result for the deleteas and proclist commands I always get the response message "USER NOT SET". 
The getauthtoken and status commands work fine. 

Cheers,



------------------------------
S D
consultant
NoName
Europe/London
------------------------------

Glad to hear the telnet flow is working for you now. You are correct, [USER PASS] is not necessary on the deleteas call. Copy-paste error on my part, so I've gone back and edited the example to remove that.

On the browser side, after the very first line did you see USER SET and USER AUTHENTICATED in the browser window?

Cheers,

------------------------------
Eric Wilson
Director, Partner Integrations for Digital Exchange
Blue Prism
------------------------------

Hi Eric, 
yes i get the messages and it seems that the user is authenticated. But for the two commands proclist and deleteas  I always get the response message "USER NOT SET". 

Cheers


------------------------------
S D
consultant
NoName
Europe/London
------------------------------