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 you the authorization code -
Then you need to send request to https://account.uipath.com/oauth/token with body as in the documentation
-
There you will get the bearer token.
-
You need to get the logical name, so again a request for : UiPath…
You will get the name. -
with all these, try to send the request again