Firebase

Stable Version 3.0.2 (Compatible with OutSystems 11)
Other versions available for 10
Published on 14 Jul by 
4.9
 (12 ratings)

Firebase

Documentation

How to configure the Firebase plugin/Firebase demo:


To configure the Demo, start in Step 2.


Step 1 - Create 5 Site Properties:

  • FbAPIKey - API Key, as defined in the Firebase console;

  • FbProjectId - Firebase project id, as defined in the Firebase console;

  • FbServiceAccountPrivateKey - Service Account Private Key, which can be found in the Firebase Project console; (Only required for authentication with Tokens)

  • FbServiceAccountClientEmail - Service Account Client Email, which can be found in the Firebase Project console; (Only required for authentication with Tokens)

  • FbDatabaseURL - Firebase Realtime Database URL, which can be found in the Firebase Project console.


Step 2 - Configure the FbAPIKey and FbProjectId: 

  1. Go to the Firebase Console and click on the “gear” icon;

  2. Click on the “Project Settings” button;

  3. On the “Settings” tab, copy the Project Id value and assign it to the site property FbProjectId;

  4. On the “Settings” tab, copy the Web API Key value and assign it to the site property FbAPIKey.


Step 3 Configure the FbDatabaseURL:


  1. Go to the Firebase console and click on the “Realtime Database” menu item;

  2. On the Data tab:

    1. Copy the Database URL and assign it to the site property FbDatabaseURL.



Step 4 - Configure the FbServiceAccountPrivateKey and the FbServiceAccountClientEmail: (Only required for authentication with Tokens)

  1. Go to the Firebase Console and click on the “gear” icon;

  2. Click on the “Project Settings” button;

  3. Click on the “Service Account” tab;

  4. On “Firebase Admin SDK”, click on the button “Generate new private key”. A JSON file will be downloaded;

  5. Open the JSON file and copy the values of the keys  “client_email” and “private_key” and assign them to the site properties FbServiceAccountClientEmail and FbServiceAccountPrivateKey.


Step 5 (only for Email + Password authentication and Anonymous authentication) - Configure authentication sign methods in Firebase Console:


  1. Go to the Firebase console and click on the “Authentication” menu item;

  2. Click on the tab “Sign-in method”

  3. Enable the authentication method:

    1. For Email and Password, enable the Email/Password method;

    2. For Anonymous, enable the Anonymous method.