Skip to content

Latest commit

 

History

History
51 lines (27 loc) · 1.9 KB

GOOGLE-CREDENTIAL-STEP-BY-STEP.md

File metadata and controls

51 lines (27 loc) · 1.9 KB

Getting Google Sign-In client-id

Follow this steps to generate your client id. The google client-id is required to the login button.

Step 1

Access this page to start your google credentials configuration.

Google Page Step 1

Step 2

Click on the button Configure Project and in the window set a name of your project. Select the option YES on the terms of service and click on NEXT.

Google Page Step 2

Step 3

Specify the product name that will be show for the users during the login proccess. After chosed the name click on NEXT.

Google Page Step 3

Step 4

Now you have to choose a kind of client id you want to create. Select the option Web Server

Google Page Step 4

Step 5

After chosed the option Web Server the window will ask you to set the matrix callback url. This is an important step. You have to talk with your IT department to indicate the correct domain link of your service. In this example we are configuring for local environment, so we inputed the value localhost http://localhost:8080/auth/google/callback for the local tests. In your case the value will be like this: http://mydomain.com/auth/google/callback

Google Page Step 5

Step 6

Now you have the valid client Id and Client Secret. You will use this values in the next step.

Google Page Step 6

Step 7

You have to copy Client ID and Client Secret and set the environent variable like this sample:

GOOGLE_CLIENT_ID=00000000-xxxxxxxxxxxxx.apps.googleusercontent.com
GOOGLE_SECRET=g4xxxxxxxxxxxxxxxxxxss
GOOGLE_CALLBACK_URL=http://localhost:8080/auth/google/callback