Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accept JSON-encoded requests #14

Open
bbockelm opened this issue Dec 12, 2018 · 0 comments
Open

Accept JSON-encoded requests #14

bbockelm opened this issue Dec 12, 2018 · 0 comments

Comments

@bbockelm
Copy link
Collaborator

Currently, we only accept form-encoded requests. Several users have tripped up on this, assuming the application will also accept JSON-encoded requests if the correct content-type was sent.

Here's what someone recently tried:

curl -L -k --key ~/.globus/userkey.pem --cert ~/.globus/usercert.pem -v -X POST -H "Content-Type: application/json" -H "Accept: application/json" -d '{"grant_type": "client_credentials"}' https://cms.scitokens.org/token
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