I can get this working in postman fine, so I added another app so i can try to get it working on my web server.
first I tried
https://cloud.uipath.com/identity_/connect/authorize?response_type=code&client_id={app_id}&scope=OR.Tasks+OR.Folders+OR.Robots+OR.Machines+OR.Execution+OR.Assets+OR.Jobs+OR.Queues&redirect_uri={redirect_url}
I went into the admin section of my orca tenant and setup a confidential app, separate from the one I’m using for postman. and I got the app id from there, and the redirect url points to a script on my server to record the response just encase it doesn’t show up on screen.
when I do that I get “unknown error #200” from UiPath domain it doesn’t even get to the redirect
so next I tried sending a post request to https://cloud.uipath.com/identity_/connect/token
with the fields
{
grant_type: "client_credentials"
client_id: "{app_id}"
client_secret: "{app_secret}"
scope: "{scopes}"
}
again using the app id and secret from the external app i configured, used the same scopes as above. I get “unauthorized_client”
then I tried to send a post to https://platform.uipath.com/api/account/authenticate
this time I set the content type header to JSON and also JSON encoded the items in the post body
{
"tenancyName" : "DefaultTenant",
"usernameOrEmailAddress" : "{myemail@address.com}",
"password" : "{mypassword}"
}
that is the name of the Tenant, and I used the same e-mail and password that use to log into orca in the request and I get “Invalid Credentials”
I do have the community version, and I can’t figure out what I’m doing wrong. I can put up screen shots if it helps. Can some one help me here?
I want to be able to integrate launching bots and getting their status into my website. and when i try doing those tasks in postman it works perfectly. but i can’t seem to auth any other way. and as far as I can tell I got both setup the same.