# Firebase

### Google Service Account

In order to access a Firebase project using a server SDK, you must authenticate your requests to Firebase with [Service Account credentials](https://developers.google.com/identity/protocols/OAuth2ServiceAccount).

To authenticate a service account and authorize it to access Firebase services, you must generate a private key file in JSON format.

To generate a private key file for your service account:

1. Open <https://console.firebase.google.com/project/_/settings/serviceaccounts/adminsdk> and select the project you want to generate a private key file for.
2. Click **Generate New Private Key**, then confirm by clicking **Generate Key**
3. Securely store the JSON file containing the key.

![](https://2000810127-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MBZ05WbSufXsgpTD0UB%2F-MYGTrqZkGi_OQtPj4JG%2F-MYGUHw6EbxexTY6qb7D%2Fimage.png?alt=media\&token=af42b203-6af8-43f1-837b-cc3a8297a018)

After downloading the service account key, you need to upload this to the backend.

On the backend go to System Settings > Firebase. Then upload the just downloaded **Service account** file.

![](https://2000810127-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MBZ05WbSufXsgpTD0UB%2F-MYGUKeE6BAVCNfJySAm%2F-MYGUp7WOBDywFA0L4t5%2Fimage.png?alt=media\&token=6836697f-d8c5-459c-adbe-c804493080bc)
