{"API Evangelist"}

Providing API Developers with Github Login Using Singly

I’m building a small API that I want to allow developers to register for. I don’t want to make it a complicated registration process, I just want them to provide some sort of credentials and I will issWue a key that they can use to make API calls.

To keep it simple I’m offering a login using a Github account. Every developer has a Github account right? Well if they don’t, they should. The easiest way there is to enable your API with a Github login is Singly.

Using Singly, I sign in with my Github account (this is where I got this idea), then I add a new application, giving it the root URL and callback URL of my API developer area.

Next I need to link up my Github account to my Singly account, by adding an application to my Github account. I give it a name, URL and when adding the callback, I add a Singly specific callback--Singly will handle the rest.

Now I just add a login with Github button to my developer area with the following URL: 

When one of my API developers click on the Github login, it will route them to Github for OAuth, back to Singly and to my API callback URL where I can grab the authorization code for the user.

Now I can reference my API developer using their Github account, using their profile image, name as well as having some stats about the user like how many repositories they have, number of followers and who they follow--which provides me a pretty good baseline metric for distinguishing active developers vs. in-active developers.

Github login should be default for all API providers. It reduces developer on-boarding friction with an API, and uses the social network that makes the most sense for API developers.