# Google Service Account

### &#x20;<a href="#google-service-account" id="google-service-account"></a>

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](https://console.firebase.google.com/project/_/settings/serviceaccounts/adminsdk) and select the project you want to generate a private key file for.

![](https://1847955594-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOtkTTG67xNUwCMxKmiFP%2Fuploads%2FqqB2YuMh0lCaGXqia7iS%2Fcabme_fire.PNG?alt=media\&token=9e016b65-17b8-4267-8ec2-6b45ba2aca70)

1. Click **Generate New Private Key**, then confirm by clicking **Generate Key**
2. Securely store the JSON file containing the key.

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

On the backend go to Admin > Api Credentials. Then upload the just downloaded **Firebase Service Account File (JSON)&#x20;**_**\***_.

![](https://1847955594-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOtkTTG67xNUwCMxKmiFP%2Fuploads%2Fbub0cfVfALZllTVIiRIQ%2Fcabme_setting.PNG?alt=media\&token=6520a30e-fba2-4a8f-b0ac-9e5f1cd20e58)
