Hello Everyone;
I am trying to make an API call to trigger a robot from the orchestrator, but despite working for my old account, my new account gives me “Invalid credentials, failed to login.”.
I tried researching and found this link :
With the rollout of the UiPath Cloud Platform, we changed how we authenticate users in Orchestrator APIs. Unfortunately, this had the unintended consequence of breaking code that people used to script Orchestrator actions in the Community Orchestrator. For more details, see this thread .
To remedy this, we are enabling back the old method of authentication (basic authentication) temporarily to unblock users while we roll out our more permanent solution.
Basic authentication will only be enabled…
but the link provided there :
About OData and References
is not working, and i can’t do the API call.
can anyone help? I use the tenant name from the “services” tab in cloud orchestrator, and the e mail and password i made.
Thanks in advance.
HareeshMR
(Hareesh Madasi)
July 31, 2019, 10:11am
2
Make sure you are following all the steps in this link @Ahmed_AbdelRahman
@UiP_Mc ,
You need to request this to get the logical name: UiPath …
I hope you are missing some steps…
Here are the steps you need to do:
Run the javascript code in the browser, which will give you the Code challenge and Code verifier
Modify the account.uipath.com URL with Code challenge and send a request in the Browser itself. Which will ask you to authenticate with the credentials.
@@@Important steps is that, you need to pass this URL in browser itself and the browser URL will give y…
Thanks for the reply.
I think this will help when i can access the account, but i can’t access it using api calls.
i use POST https://platform.uipath.com/api/account/authenticate
HareeshMR
(Hareesh Madasi)
July 31, 2019, 10:17am
4
Yes,
The authentication using the API is included with more steps now @Ahmed_AbdelRahman
we need to get the logical name by running a javascript code in the browser. Then running a simple URL in browser, we will get the authorization code . Then we need to use these all in the authentication step
I hope you are missing something . Please check again
ok thanks for the help, please bear with me
what is the Javascript code?
when i use
https://platform.uipath.com/cloudrpa/api/getAccountsForUser
i get this message:
{“timestamp”:“31-07-2019 10:21:19”,“errorMessage”:“Full authentication is required to access this resource”,“debugMessage”:null,“errorCode”:9024,“subErrors”:null}
Also, the documentation link isn’t working. if you can provide a working link, that would be great
loginerror
(Maciej Kuźmicz)
July 31, 2019, 10:23am
7
Hi @Ahmed_AbdelRahman
The documentation will be back soon enough. We are doing some improvements
In the meantime, please check out my post here:
Hi @alfalfi
Welcome to our UiPath Forum!
Sure, have a look at this project:
CloudAPI_GetAccessToken.zip (12.0 KB)
It basically recreates the steps from the Cloud API guide in 4 ‘simple’ workflows:
[image]
I will rush it out, even though some functionality still needs to be added. But maybe someone here on the Forum could take care of that
You will need Chrome for it to work
It contains a project that you can simply run to get all the tokens
HareeshMR
(Hareesh Madasi)
July 31, 2019, 10:24am
8
Yes, the documentation link is not working now. If it is available then it will be easy for you.
You will have the javascript link available there @Ahmed_AbdelRahman …
Please wait
Ok guys. thanks for the help. i was starting to doubt myself
I hope it get fixed soon. I will be waiting, and in the meantime i will try using project provided by maciej
Do we have any timelines for this?
loginerror
(Maciej Kuźmicz)
July 31, 2019, 2:10pm
11
It should be up
Check out docs.uipath.com