Skip to content

Try to check for error responses even when the status code isn't HTTP 400 #274

Closed
@bonifaido

Description

According to https://tools.ietf.org/html/rfc6749#section-5.2 an error response is returned mostly when the HTTP status code is 400, but in some cases for example in GitHub an error response can be raised even when the status code is 200. In this case internal.RetrieveToken() parses the output but with missing parameters, and continues, but the token struct is half-baked.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions