Skip to content

Need help figuring out the SSO #57

@panthernet

Description

@panthernet

Hi, currently I'm getting this error. I suppose the request should return a JSON but looks like I'm getting some binary rubbish.

R: ?code=ox15HMhqmEqMQk26dRyhP1&state=JrQ1R2TsXxxnPnIWrRAQ3zj6ijUpD13i

      Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: �. Path '', line 0, position 0.
         at Newtonsoft.Json.JsonTextReader.ParseValue()
         at Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter)
         at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
         at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
         at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
         at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
         at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value)
         at ESI.NET.SsoLogic.GetToken(GrantType grantType, String code, String codeChallenge) in D:\Projects\MyProjects\EVE\UFIT\ESI.NET\ESI.NET\Logic\_SSOLogic.cs:line 133

Here're the code scaps:

        [Route("auth")]
        public async Task<string> Index()
        {
             await EsiClient.SSO.GetToken(GrantType.AuthorizationCode, ControllerContext.HttpContext.Request.Query["code"]);
        }

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions