Create new Firebase project
Google Firebase is used for authentication of the Web client as an example and can be replaced with other authentication mechanisms. For Firebase authentication use the following steps:
1. Create a new project in the Firebase console
Go to https://console.firebase.google.com/, click on "Add project"
![](../__attachments/2188738561/image-20220215-153937.png?inst-v=fc7a1bd4-712b-468f-b1ee-914d3e939373)
Go to the “Authentication/Sign-in method” and click “Email/password”
![](../__attachments/2188738561/image-20220215-153954.png?inst-v=fc7a1bd4-712b-468f-b1ee-914d3e939373)
Check the “Email/Password” and click “Save”
![](../__attachments/2188738561/image-20220215-154005.png?inst-v=fc7a1bd4-712b-468f-b1ee-914d3e939373)
Then click “Add domain”
![](../__attachments/2188738561/image-20220215-154017.png?inst-v=fc7a1bd4-712b-468f-b1ee-914d3e939373)
Enter your domain name and click “Add”
![](../__attachments/2188738561/image-20220215-154026.png?inst-v=fc7a1bd4-712b-468f-b1ee-914d3e939373)
Go to “Project settings” and click “</>” (to add a web app)
![](../__attachments/2188738561/image-20220215-154037.png?inst-v=fc7a1bd4-712b-468f-b1ee-914d3e939373)
Enter app nickname and click “Register app”
![](../__attachments/2188738561/image-20220215-154047.png?inst-v=fc7a1bd4-712b-468f-b1ee-914d3e939373)
2. Store Firebase config
Go to https://console.firebase.google.com/, then go to “Project settings” > “General”, copy the Firebase config, and store it.
![](../__attachments/2188738561/image-20220215-154516.png?inst-v=fc7a1bd4-712b-468f-b1ee-914d3e939373)
3. Generate and store private key
Go to https://console.firebase.google.com/, then “Service accounts” and click “Generate new private key”
![](../__attachments/2188738561/image-20220215-154625.png?inst-v=fc7a1bd4-712b-468f-b1ee-914d3e939373)
Click to “generate key”
![](../__attachments/2188738561/image-20220215-154638.png?inst-v=fc7a1bd4-712b-468f-b1ee-914d3e939373)
Download and save it.
4. Whitelist the domain name
Go to Authentication -> Settings -> Authorized domains -> Add domain and add to the list the domain name of the web frontend