Skip to main content
Version: v0.14

Google

In this tutorial, we'll be setting up Google authentication for Conduit.
Before we begin, we'll need to create a Google Application.

Configure Google

To begin the Google Authentication you need to get some credentials.
Go to your Google Console and create a new project.
Once you have a new project, you have to request your app credentials.

Google Credentials

Click the CREATE CREDENTIALS button at the top of the page.

Google Type Credentials

Choose OAuth Client ID.
You will also be asked for an application type. Choose Web App.
Your application credentials have been generated.
You will only need the client id and client secret.

You need to add an Authorized redirect URI.
Hit http://localhost:<CONDUIT_PORT>/hook/authentication/google.

Google Authorized Uri

A pop-up window will be displayed to you which contain your client id and client secret.

Google Secrets


Authenticate with Google

At this step you need to begin authorize with Google by calling the /authentication/init/google route.
Open postman and make a GET request to this route.By doing this you will get a link.

Google Postman

Open a browser and navigate to this link.
If your browser has been redirected to the url which you configured everything went well and the authentication has been completed.