VitNode

Google

Integrate Google Single Sign-On (SSO) in your application.

Choose project

Select the project you want to use for the SSO integration. If you don't have a project, you can create one.

Google Cloud Platform Console

Open Google Auth Platform

Now let's open the Google Auth Platform. We will use a search bar to find it.

Google Auth Platform in search bar

Configure Google Auth Platform

First you need to configure the Google Auth Platform. You need to provide the App name and Support email.

Audience

Pick the External option to allow all users to use the SSO.

Audience in Google Auth Platform

Create OAuth Client

In navigation select Clients and click Create Client button.

Create OAuth Client in Google Auth Platform

Configure OAuth Client

  1. Select Web application as the application type,
  2. Provide the Name of the application,
  3. Add the Authorized redirect URIs for the callback URL. VitNode provides the callback URL as https://yourdomain.com/login/sso/google/callback. Remember to replace yourdomain.com with your domain.
Configure OAuth Client in Google Auth Platform

Get Client ID & Secret

After you create the OAuth Client, you need to get the Client ID and Client Secret. Choose your 0Auth Client and click edit button.

On the right side, you will see the Client ID and Client Secret.

Get Client ID & Secret in Google Auth Platform

Save the Client ID and Client Secret. You will need these keys to integrate the SSO into your application.

Configuration in VitNode

Go to the AdminCP => Settings => Authorization => Login Methods and click Create Method button.

VitNode Login Methods

Choose Google as the provider and provide the Client ID and Client Secret.

Test the SSO

Now you can test the SSO. Go to the login page and click the Google button.

Publish OAuth Client

If everything works fine, you can publish the OAuth Client. Go to the OAuth Consent Screen => Audience and click the Publish App button.

Publish OAuth Client in Google Auth Platform

On this page