hummingbird-me / kitsu-tools

:hammer: The tools we use to build Kitsu, the coolest platform for anime and manga
https://kitsu.io
Apache License 2.0
2.09k stars 265 forks source link

Authentication endpoint returns error 500 #791

Closed nstratos closed 7 years ago

nstratos commented 7 years ago

Description: I am trying to do an authenticated request to the API by following the instructions in this thread. According to the instructions I have to provide grant_type, client_id and client_secret parameters in the POST request to https://kitsu.io/api/oauth/token but when I do so I receive error 500.

Steps to reproduce: curl --data "grant_type=password&client_id=dd031b32d2f56c990b1425efe6c42ad847e7fe3ab46bf1299f05ecd856bdb7dd&client_secret=54d7307928f63414defd96399fc31ba847961ceaecef3a5fd93144e960c0e151" https://kitsu.io/api/oauth/token

nstratos commented 7 years ago

To get a token, username and password are also needed in the POST request:

curl --data 'grant_type=password&client_id=dd031b32d2f56c990b1425efe6c42ad847e7fe3ab46bf1299f05ecd856bdb7dd&client_secret=54d7307928f63414defd96399fc31ba847961ceaecef3a5fd93144e960c0e151&username=<username>&password=<password>' https://kitsu.io/api/oauth/token

This successfully returned a token.