INDIE GAMES

Create OAuth applications on itch.io


Today we’re launching support for OAuth Applications. It will allow developers let players log in with their itch.io account inside of a game or program. OAuth provides a flow for your program to securely get an API key that represents another user on itch.io after they approve your application. You can make API calls on behalf of someone using your game or application. You can learn more about the itch.io API here.

If you’re ready to dive in, read the OAuth documentation, otherwise continue on for a brief summary.

Creating an application

To start using OAuth as a developer you’ll need to register an application. After filling out a few simple questions about what you’re building, your application is approved automatically. 

Head over to User Settings -> OAuth applications to create your first application.

As of today, our OAuth implementation only supports the Implicit Flow, if you need additional support then please reach out to us.

Authorizing an application

After creating your application, it’s as simple as sending any users to your special itch.io login URL. You can view this URL from your application’s page in your settings page. Someone logging can review the permissions that are being requests, and approve it to continue. The browser is redirected back to your application where you can access the new API key.

Using the API key

After the authorization step is complete you’ll have a scoped API key that can be used to communicate with the itch.io server-side API. The most useful API call you can make is to get information about the current user. You can use this to synchronize a user with your own backend.

Updates to server-side API

As part of this update we’ve updated the server-side API documentation with more information about the different API keys, along with a new endpoint. Over the coming months we’ll be releasing more API endpoints. If there’s something specific you’re looking for leave us a comment or send us an email.

Enjoy

Support this post

Did you like this post? Tell us

Originally posted by itch.io

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button

Adblock Detected

We only use unintrusive ads on our website from well known brands. Please support our website by enabling ads. Thank you.