# Google Sign in Configuration

You will start at the API credentials manager:\
[https://console.developers.google.com/projectselector/apis/credentials](https://console.developers.google.com/projectselector/apis/credentials)

You first need to make a project. My example calls this CrushFTP-Test.\
![Create project](GDriveSetup/create_project.png)

Next select create credentials, and choose the Web Application type.\
![Create credentials](GDriveSetup/create_credentials.png)

![Oauth consent](GDriveSetup/oauth_consent.png)

Configure the **Authorized JavaScript origins**. Like **protocol://dns_or_ip:port**. Without a trailing slash or it will complain.\
Provide the **Redirect URL** too. The location where Google sends back the Id token (Id Token : That will be used for the authentication of the google user).\
![G sign origin redirect url](CrushOAuth/g_sign_origin_redirect_url.png)

Copy the **Client ID** that will be required to integrate the **Google Sing-In** Button.

**Integrate Google Sign-In button**

![Gsign in button](CrushOAuth/gsign_in_button.png)

Go to the **Preferences-> Ip/Servers** and select the **HTTP** or **HTTPS** port item(**OAuth Sign in** Tab) where you want to enable the Google Sing-In button. Check the **"Enable Google Sign in"** flag and provide the **Client ID** of you Google project(mentioned above).

![Port item settings](CrushOAuth/port_item_settings.png)

**!!!Continue on:** [CrushOAuth](CrushOAuth.md)
