simov / grant

OAuth Proxy
MIT License
4.08k stars 257 forks source link

Itch.io authentication #294

Closed itlackey closed 10 months ago

itlackey commented 10 months ago

I am trying to add Itch.io authentication to a Strapi JS application. Does anyone have any guidance on how to configured grant to get it to work with itch.io?

https://itch.io/docs/api/oauth

simov commented 10 months ago

It seems like itch.io supports only the Implicit flow from OAuth2 where Grant on the other hand is concerned with the Authorization Code flow instead. Meaning, for itch.io you can simply redirect the user to the authorization URL and once redirected back to your app the credentials will be embedded into the callback URL as part of the hash fragment. There is no client server involved in this flow.

itlackey commented 10 months ago

That makes total sense. I just couldn't figure out how to get Strapi out of the way. I had to override some of its default behavior, but it is definitely not an issue with Grant.