06-10-20 05:27 PM
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?
Answered! Go to Answer.
22-06-21 02:49 PM
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.
22-06-21 03:56 PM
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,
22-06-21 04:14 PM
24-06-21 10:10 AM