Enable Github sign-in OAuth with Firebase

Amir Movahedi
Red Gold
Published in
2 min readApr 26, 2018

Briefly, OAuth makes stuff simpler for users and also for developers to authorize users. Maybe it could be more reliable way too. Here we are going to learn how to use Github sign-in method in Firebase therefore user is able to sign-in apps with their Github account.

Step 1:

Go to Developer Setting in Setting page of your Github account. Then choose OAuth Apps form menu. Click on New OAuth App button to create a new OAuth app.

Create New OAuth App

Application name: input the name of your application that user can recognize your application.

Homepage URL: Input the home URL of you web app.

Application description: A summarize about your application.

Authorization callback URL: To get Authorization callback URL you need to go to the you Firebase Console then choose Authentication from Develop menu. Then in Sign-in method tab Choose Github.

Github Sign-in method

From this page Copy last field (Authorization callback URL) then Paste in Authorization callback URL field of Register a New OAuth Application page of Github. ( URL in pictures are fake!)

Register a New OAuth Application

Step 2:

Click on Register application. In Github Application Page you are able to upload a logo for your application.

Github Application page

Copy Client ID and Client Secret from Github Register application and Paste in Github Sign-in Method page of Firebase. Then Click on Save Button.

Firebase Github Sign-in Method Page

Now your application is ready to use Github Sign-in Method.

For more information please checkout Firebase Github Authentication Document.

Hope it’s helpful!

--

--

Amir Movahedi
Amir Movahedi

Written by Amir Movahedi

Full-Stack, Cloud, Kubernetes, IoT lover, distributed system and clean architecture. (every click is valuable!) https://amir.telar.dev