I am trying to make a console app that consumes the EVE online API, it uses Auth0 verification for some API requests
Swagger details https://esi.tech.ccp.is/ui/ Auth0 url https://login.eveonline.com/oauth/authorize?
i am currently trying to login systematically however i keep getting the error
JsonReaderException Unexpected character encountered while parsing value: <. Path '', line 0, position 0.
I think i am doing the process wrong in the first place and that is just trying to pass the default json {"error":"invalid_request","error_description":"Some parameters are either missing or invalid"}
Could someone help me point out what i am missing please
private static void Main()
{
var t = Task.Run(() => LoginAsync());
t.Wait();
}
private static async Task LoginAsync()
{
const string URL = "https://login.eveonline.com/oauth/authorize?";
AuthenticationApiClient client = new AuthenticationApiClient(new Uri(URL));
var cred = new Auth0.AuthenticationApi.Models.AuthenticationRequest
{
ClientId = "abcdef",
Username = "UN",
Password = "PW",
Scope = "esi-markets.structure_markets.v1",
Connection = "Username-Password-Authentication"
};
Auth0.AuthenticationApi.Models.AuthenticationResponse response = await client.AuthenticateAsync(cred);
}
I am trying to retrieve the auth token so that I can do further requests with it. How can it be done?