#### Gmail single login

Here you are able to create single login for the Gmail. Using the Gmail single login users can login to the client portal using the Gmail credentials. After the successful procedure on the client portal there will be Gmail icon and the clients will be able to login to the client portal using Gmail credentials.

Steps for single login:

Step 1] Login to the Google developer console and create a new project https://console.developers.google.com/project

If you have already created projects in Google Developers Console then it will list out all the created projects.

Step 2] Click on the particular project and click on the products and services icon (launcher icon on the left side of the header menu) >> API Manager

For enabling the API:

- Click on enable API.

- Search for Gmail API and click on enable it button.

For retrieving keys go to API Manager >> Credentials.

Click on create credentials >> copy paste the Api key.

Click on create new client id and insert your domain into authorized JavaScript origins and redirection URL is the domain with

EX. http://yourdomain.com/index.php?/client/gmail_login/

Step 3] Click on create new key and select browser key option and insert your domain.

Note: You can refer the given link- https://support.google.com/cloud/answer/6158857?

Step 4] Log-in to manage portal,

Path: Settings/Single login/Gmail.

Domain: Domain for which Gmail single login settings are to be done is to be selected from the drop down.

Client id: The client id that one obtains from the Google developers console needs to be entered here.

Client secret: The client secret that one obtains from the Google developers console needs to be entered here.

Key: The key that one gets from the Google developers console needs to be entered here.

Redirect URL: The URL where it needs to be redirected needs to be mentioned here. Add the same URL from Step 2 used as redirected URL:

http://yourdomain.com/index.php?/client/gmail_login/

Status: The status can be either enabled or disabled from here.

Note: If error occurs please check the domain of the client in which it is added and used as a redirect URL.