Enable Github sign-in OAuth with Firebase
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.
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.
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!)
Step 2:
Click on Register application. In Github Application Page you are able to upload a logo for your application.
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.
Now your application is ready to use Github Sign-in Method.
For more information please checkout Firebase Github Authentication Document.
Hope it’s helpful!