Integrate Google Single Sign-On (SSO) in your application.
Sign in to Google
Go to Google Cloud Platform Console and sign in.
Choose project
Select the project you want to use for the SSO integration. If you don't have a project, you can create one.
Open Google Auth Platform
Now let's open the Google Auth Platform
. We will use a search bar to find it.
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.
Create OAuth Client
In navigation select Clients
and click Create Client
button.
Configure OAuth Client
- Select
Web application
as the application type, - Provide the
Name
of the application, - Add the
Authorized redirect URIs
for the callback URL. VitNode provides the callback URL ashttps://yourdomain.com/login/sso/google/callback
. Remember to replaceyourdomain.com
with your domain.
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
.
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.
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.