8min

Firebase Service Account Plugin

Introduction

Imagine if your app had its own Firebase. You could use Firebase without a user being signed in with their account!

Note: This is the JSON WEB Token authentication version, users will access the Service Account Firebase.

For the information on how to obtain Service Account Keys for this plugin, please read here: https://docs.zeroqode.com/obtaining-google-service-account-keys

For using the plugin you'll need to get the API credentials with JWT for Google. Create your development account at : https://console.developers.google.com and enable the Firebase API , Admin SDK API.

Setting up Google Account and Bubble Plugin

a) Iss (account email): [your-account-name]@[google-project-name].iam.gserviceaccount.com

b) Private Key:

-----BEGIN PRIVATE KEY----- HERE YOUR PRIVATE API KEY -----END PRIVATE KEY-----

c) Realtime Database Auth Secret: yourkey4EJ23xxyckdLzMIVSgFlW9lVRcYIqyb214d

2) Install the plugin Firebase Service Account and fill out the plugin settings with the information above.

Document image



3) Next you can use all the API Calls and Actions that the plugin provides.

For calls you’ll need next keys:

  1. Auth - This secret is found in your Firebase console under service accounts then database secrets.
Document image

2. Project ID - It’s the identifier of your Firebase project.

Document image

3. Database - name of your Realtime database

Document image

Plugin Data Calls / Actions

Signup a User Sign a User In Sign in anonymously Update User Profile / Get Password Hash Get User Data Set User Email/Password Delete User Realtime Database Public Update Realtime Database PUBLIC READ Realtime Database PUBLIC DELETE Realtime Database PUBLIC Add Realtime Database AUTH READ Realtime Database AUTH WRITE Realtime Database AUTH DELETE Realtime Database AUTH UPDATE

Demo to preview the settings



Updated 19 Apr 2022
Did this page help?
Yes
No