Using Client credentials to get authorization, according to UiPath documents:
For confidential applications to access application scope, the external application requests an access token by sending a POST request that includes the client_id
and client_secret
to the Identity Server token endpoint: https://cloud.uipath.com/identity_/connect/token
.
{
“grant_type”: “client_credentials”,
“client_id”: “{app_id}”,
“client_secret”: “{app_secret}”,
“scope”: “{scopes}”
}
The response status code is 200. But the response text is not json which contains token.
Current respons is html as below, what is the problem?
<!doctype html>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<link rel="icon" type="image/x-icon" href="favicon.png">
<link rel="stylesheet" type="text/css" href="css/material-icons/material-icons-fontface.css">
<link rel="stylesheet" type="text/css" href="css/noto/noto-font-jp-zh-woff.css">
<link rel="stylesheet" type="text/css" href="css/noto/noto-font-jp-zh.css">