# Google SSO Login for On-Prem

To setup Google SSO for on-premise installation, you will need to create OAuth authorization credentials in the Google developer console to identify the application to Google's OAuth 2.0 server.

1. Go to the [<mark style="color:blue;">Developer Credentials page</mark>](https://console.developers.google.com/apis/credentials).
2. Click **Create credentials > OAuth client ID**.
3. Select the **Web application** application type.
4. Name your OAuth 2.0 client and add the Javascript origins and redirect urls replacing the following with your domain.

<figure><img src="https://273246003-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOAPqUQVbLbsfI5YESl32%2Fuploads%2FPBwd7fmkpnvsd8L4Ewjc%2Fjavascript.png?alt=media&#x26;token=0554738d-edd6-459a-85cb-11c8e0b445f8" alt=""><figcaption></figcaption></figure>

5. Add the Google Client ID and Client Secret that is on this page to your docker `.env`  file.

```shell
GOOGLE_CLIENT_ID={YOUR_GOOGLE_CLIENT_ID}
GOOGLE_CLIENT_SECRET={YOUR_GOOGLE_CLIENT_SECRET}
```

Restart the server, and Google SSO should work.
