Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

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

What is itch.io?

itch.io is an open marketplace for independent game creators. It's completely free to upload your content. Read more about what we're trying to accomplish and the features we provide.

Leave a comment

Log in with your itch.io account to leave a comment.

Any updates on this? It would be great if there was a version that was a little less serious looking, kinda like discord or googles OAuth system. Especially if it’s only surface level permissions such as username and profile picture.

(+4)

I hope this is building toward allowing users from an itch.io game to track things like achievements, leaderboards, and other things like that.

Admin(+3)

It sure is!

(+1)

That is super exciting news!