ApiV2-GraphQL-Docs icon indicating copy to clipboard operation
ApiV2-GraphQL-Docs copied to clipboard

Wrong redirect URI on docs

Open temasaguru opened this issue 4 years ago • 1 comments

https://anilist.gitbook.io/anilist-apiv2-docs/overview/oauth/authorization-code-grant

This page says we need to redirect users to the URI below:

https://anilist.co/api/v2/oauth/authorize?client_id={client_id}&redirect_uri={redirect_uri}&response_type=code

However, with ` I got this error

{
"error": "invalid_client",
"message": "Client authentication failed"
}

I removed redirect_uri= and it finally worked. Is docs wrong?

temasaguru avatar Oct 11 '21 13:10 temasaguru

Make sure you have the right configuration set in the Api Clients settings: image This would result in an authorize URL like this:

https://anilist.co/api/v2/oauth/authorize?client_id=1234&redirect_uri=https://example.com/callback&response_type=code

rorik avatar Oct 13 '21 12:10 rorik