Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4

Google Firebase is used for authentication in VXG Web Client and you can switch to your own Firebase authentication using the following steps:

1. Create a new project in the Firebase console

Go to https://console.firebase.google.com/, click on "Add project"

Go to the “Authentication/Sign-in method” and click “Email/password”

Check the “Email/Password” and click “Save”

Then click “Add domain”

Enter your domain name and click “Add”

Go to “Project settings” and click “</>” (to add a web app)

Enter app nickname and click “Register app”

2. Create the config.js file

Go to https://console.firebase.google.com/, then go to “Project settings” > “General”, copy firebase config, and store it as file /api/conf.d/config.js

Go to the https://app.ipworld.info/ site and generate ipworld_api_key.

Edit /api/conf.d/config.js and add after:

window.no_check_mail_auth = window.no_check_mail_auth || false;
window.no_check_local_addresses = window.no_check_local_addresses || false;
window.ipworld_api_key = '8c835497858d45029599768e028939ce';

In sample key is '8c835497858d45029599768e028939ce'

Sample of full file config.js:

const firebaseConfig = {
  apiKey: "AIzaSyA7qxoxlh85yV-NotUMzBnVtm4OruMVq6Y",
  authDomain: "testfb-15070.firebaseapp.com",
  projectId: "testfb-15070",
  storageBucket: "testfb-15070.appspot.com",
  messagingSenderId: "764840511",
  appId: "1:764840511:web:feb0fe8d93c4205bd7068a"
};
window.no_check_mail_auth = window.no_check_mail_auth || false;
window.no_check_local_addresses = window.no_check_local_addresses || false;
window.ipworld_api_key = '8c835497858d45029599768e028939ce';

3. Create the firebase.php file

Go to https://console.firebase.google.com/, then “Service accounts” and click “Generate new private key”

Click to “generate key”

Download and save file as /api/conf.d/firebase.php

Edit file /api/conf.d/firebase.php - add 4 characters “<?php” to the beginning of the file and save it

  • No labels