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

Open
dweitzman opened this issue Jul 9, 2024 · 0 comments

Comments

@dweitzman
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant