Hi UiPath Community,
I’m trying to authenticate and obtain a Bearer Token for UiPath Automation Suite using Client ID and Client Secret via Postman, but I’m facing issues.
Request Details:
-
Method: ‘POST’
-
Endpoint: ‘https://asrpadev.ncbnpr.local/default/DefaultTenant/orchestrator_/identity/connect/token’
-
Headers:
Content-Type: application/x-www-form-urlencoded -
Body (x-www-form-urlencoded):
grant_type=client_credentials
client_id=<my_client_id>
client_secret=<my_client_secret>
Issue:
When I send the request, I receive the following error message:
json
{
“error”: {
“code”: “UnsupportedApiVersion”,
“message”: “The HTTP resource that matches the request URI does not support HTTP method ‘POST’.”
}
}
I also tried using ‘/api/Account/Authenticate’, but it gives another error saying ‘UsernameOrEmailAddress’ and ‘Password’ are required, even though I want to authenticate using Client ID & Secret.
Questions:
- Is there a different endpoint for Client ID & Secret authentication in UiPath Automation Suite?
- Does my request format need adjustments?
- Are there specific configurations required in Orchestrator to allow this authentication method?
Any guidance would be highly appreciated!