hi all,
i am using below code, though my credentials are correct and i can use them using postman, but here after using this it says invalid credentials
please help
{
var client = new RestClient(“https://orchestratorURL/api/account/authenticate ”);
var request = new RestRequest(Method.POST);
request.AddHeader(“cache-control”, “no-cache”);
request.AddHeader(“content-type”, “application/json”);
request.AddParameter(“loginModel”, “{\n "tenancyName": "xx",\n "usernameOrEmailAddress": "xx",\n "password": "xx" \n}”,ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
if ((int)response.StatusCode == 200)
{
}
else
{
}
}
catch (Exception e)
{
throw e;
}
Thanks
HareeshMR
(Hareesh Madasi)
October 10, 2019, 1:09pm
2
Now we have lot of steps included to call the orchestrator API @armamidwar . Have you finished all those steps? Actually, you need to pass bearer token along with the above request
Thanks Hareesh for replying ,
this is the first the step - Authentication
HareeshMR
(Hareesh Madasi)
October 10, 2019, 1:26pm
4
Not at all, you have many other steps to do before. Here is the step by step process
Hi All,
As I see lot of topics being posted on the authentication of Orchestrator cloud API, I decided to provide the step by step process of authentication and using the API.
Here are the steps:
Here is the documentation: About OData and References
Generating Code Challenge and Code Verifier :
a) This is the URL you need to run in any browser https://repl.it/languages/nodejs. and it will open the page like this
[image]
This is a nodeJS server which will retrieve us the specific code…
system
(system)
Closed
October 15, 2019, 11:52am
5
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.