Now, i am able to autheticate and get in response:
{
“access_token”: “[access token]”,
“id_token”: “[id token]”,
“scope”: “openid profile email offline_access”,
“expires_in”: 86400,
“token_type”: “Bearer”
}
access token and Id token, but to get use the further api like get environment detail which token i must use with bearer +. ?
Hi Hareesh,
thanks for sharing that link but now i want to trigger orchestration processes through external system using API. Can you help me achieving that.
for eg: i have a processes which is managed by some robot and working fine with ui path, but i want to achieve the same behavior through some external system using api. Can we do that?
To retrieve your AccountLogicalName and ServiceLogicalName you must use the IdToken as the bearer token.
To make REST API requests you use the Access token as the bearer token.
Remember the Access Token expires in 24 hours after issued, so either refresh it when it expires, or grab a new one (using the refresh token) every time you start a new session.
Also, there are a number of headers that you must get correct in addition to the Authorization header.
You need Content-Type, X-UIPATH-FolderPath and X-UIPATH-TenantName.
{“timestamp”:“08-11-2019 10:18:15”,“errorMessage”:“Full authentication is required to access this resource”,“debugMessage”:null,“errorCode”:9024,“subErrors”:null}
it is not working for me as well. The same code was working before now it is showing
{
“message”: “Invalid credentials, failed to login.”,
“errorCode”: 1000,
“resourceIds”: null
}
whereas i am entering the same credentials as I am using for web login
Can you please share the work around you did so far to this issue so that the people on the forum with the same issue will have a look at the solution @Manish_Jawla