Firebase: Google Sign-In Authentication FIREBASE
- Firebase Tutorial
- Features of Firebase
- Android Studio
- Firebase - Environment Setup (with android studio)
- Firebase Assistance - Android Studio
- Firebase Authentication
- Firebase: Google Sign-In Authentication
- Firebase: Facebook Sign-In Authentication
- Firebase: Sign-In Authentication Using Phone Number
- Firebase UI: Authentication using email/password
- Firebase UI: Authentication using email link
- Firebase SDK: Authentication using email/password
- Firebase SDK: Authentication using the email link
- Firebase: Realtime Database
- Firebase: Real-time database setup and configuration
- Firebase: Data Organization in Real-time Database
- Firebase: Realtime Database Reading and Writing
- Firebase: Realtime Database Update and Delete
Firebase: Google Sign-in Authentication
Google Sign-in Authentication. It is pretty easy to do.
Starting steps are the same as we have done with other authentication methods, which are as follows:
- Creating an Android project.
- Creating a Firebase project.
- Adding Firebase to the Android project or application, either manually or Firebase Assistance.
- Adding the required libraries and JSON files.
Apart from firebase auth and core libraries, we have to add google play services auth in app.gradle file
In the next step, we have to enable the Google sign-in method in Firebase console. We also have to add a project supporting email.
Just like our previous method, we have to set SHA-1 and SHA-256 keys.
In the next step, we will create the layout file that contains three buttons Google sign-in, sign-out, and sign-out and disconnect. The activity layout will look like:
Now, we will modify our MainActivity.java file to perform the Google sign-in authentication in the following way: