As we speak we’re launching assist for OAuth Purposes. It will enable builders let gamers log in with their itch.io account inside a sport or program. OAuth supplies a stream in your program to securely get an API key that represents one other person on itch.io after they approve your utility. You can also make API calls on behalf of somebody utilizing your sport or utility. You’ll be able to study extra concerning the itch.io API right here.
In the event you’re able to dive in, learn the OAuth documentation, in any other case proceed on for a quick abstract.
Creating an utility
To begin utilizing OAuth as a developer you may have to register an utility. After filling out a couple of easy questions on what you are constructing, your utility is authorised routinely.
Head over to Consumer Settings -> OAuth purposes to create your first utility.
As of right now, our OAuth implementation solely helps the Implicit Circulate, for those who want further assist then please attain out to us.
Authorizing an utility
After creating your utility, it is so simple as sending any customers to your particular itch.io login URL. You’ll be able to view this URL out of your utility’s web page in your settings web page. Somebody logging can evaluate the permissions which are being requests, and approve it to proceed. The browser is redirected again to your utility the place you possibly can entry the brand new API key.
Utilizing the API key
After the authorization step is full you may have a scoped API key that can be utilized to speak with the itch.io server-side API. Probably the most helpful API name you may make is to get details about the present person. You should use this to synchronize a person with your personal backend.
Updates to server-side API
As a part of this replace we have up to date the server-side API documentation with extra details about the totally different API keys, together with a brand new endpoint. Over the approaching months we’ll be releasing extra API endpoints. If there’s one thing particular you are searching for depart us a remark or ship us an e-mail.
Take pleasure in
Assist this publish
Did you want this publish? Inform us