Skip to content
This repository is currently being migrated. It's locked while the migration is in progress.

OAuth2 /token endpoint rejects requests correctly-encoded as "application/x-www-form-urlencoded" #29

@dweitzman

Description

@dweitzman

In testing with an off-the-shelf oauth2 client implementation, a POST to https://api.getsling.com/oauth2/token failed with 415 (Unsupported Media Type)

https://www.rfc-editor.org/rfc/rfc6749#section-4.1.3 states that OAuth2 token requests use the application/x-www-form-urlencoded format, but it looks like the Sling API only accepts application/json encoding if the example request given in https://github.com/getsling/getsling-api-docs/blob/develop/docs/oauth.md is accurate

Would it be impossible to make the API accept well-formatted oauth2 requests from libraries that follow the OAuth2 standard? Otherwise I won't be able to use the sling API

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions