> For the complete documentation index, see [llms.txt](https://clone-app-solutions.gitbook.io/cabme/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://clone-app-solutions.gitbook.io/cabme/configulation/firebase/google-service-account.md).

# 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> 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)
