# Google

:::info
Using Google as an OAuth provider is only supported if you are using Google Workspace

:::


In this guide `docs.mycompany.com` will be used to represent the location you are hosting Outline, it should be replaced with the correct value. This is the recommended method for using Google as a sign-in provider.

## Create a project

* Go to [https://console.cloud.google.com](https://console.cloud.google.com/)
* Create a project or use an existing one

## API's & Services

* Go to [APIs & Services](https://console.cloud.google.com/apis/dashboard)
* Click “Enable APIs and Services”
* Enable the [Google+ API](https://console.cloud.google.com/apis/library/plus.googleapis.com)

## OAuth consent screen

* Go to [OAuth consent screen](https://console.cloud.google.com/apis/credentials/consent)
* Select `Internal` for the user type and click “Create” – If you are not a Google Workspace user you will not be able to select this option. It is advisable to use a different method of auth.
* Choose an “App name”
* Make sure that “Authorized domains” includes the domain you are using for Outline

## Credentials

* Go to [Credentials](https://console.cloud.google.com/apis/credentials)
* Click on “Create credentials” and select “OAuth client ID”
* Choose `Web application` as the application type
* Under “Authorized JavaScript origins” enter your domain name again
* Under “Authorized redirect URIs” enter the URL (replacing the domain name): `http://docs.mycompany.com/auth/google.callback`
* Click “Save”
* Make a note of the Client ID and Secret values

## Outline

Add the values noted from the above process in the following environment variables, once you restart the instance you’ll see a new option to sign-in with Google.


`GOOGLE_CLIENT_ID= `

`GOOGLE_CLIENT_SECRET=`

---

**Documents**

- [License restrictions](https://docs.getoutline.com/s/hosting/doc/license-restrictions-f9aq6uEL3H)
- [Requirements](https://docs.getoutline.com/s/hosting/doc/requirements-ULdYnwi4wG)
- [Installation methods](https://docs.getoutline.com/s/hosting/doc/installation-methods-pSvgz9j0QC)
- [Configuration](https://docs.getoutline.com/s/hosting/doc/configuration-509J4lAzjo)
- [Business + Enterprise](https://docs.getoutline.com/s/hosting/doc/business-enterprise-rv0715NxO3)
- [Backups](https://docs.getoutline.com/s/hosting/doc/backups-KZtPOADCHG)
- [Troubleshooting](https://docs.getoutline.com/s/hosting/doc/troubleshooting-HXckrzCqDJ)