Single Sign-On (SSO) is an authentication process that allows users to access multiple applications or services using only one set of login credentials. The primary goal of SSO is to simplify the user experience by reducing the number of times a user has to log in when accessing different systems or services.
In a traditional authentication setup, each application or service requires its own set of credentials, leading to multiple login processes and the need to remember multiple usernames and passwords. SSO addresses this challenge by enabling users to log in once and access various systems or services without re-entering their credentials for each service individually.
Before integrating Google Sign-in into your website, it is necessary to create a Google Client ID and Client Secret.
1. Open the Google Developers Console in your browser and log in to your account
2. Click Select a project ➝ New Project ➝ Create
3. Enter your Project name and click the Create button.
4. Click OAuth consent screen in the left side menu, select the preferred User Type, and click the Create button.
5. In the next step you will need to populate these fields:
Application name
Support email
Authorized domain and
Developer content information
Once you are done, click the Save and Continue button.
6. In the Scopes screen, select scopes:
openid
userinfo.profile
userinfo.email
7. Complete the rest of the steps
8. Once done, navigate to Credentials, click Create Credentials and select the OAuth client ID from the dropdown list.
9. Open the dropdown list Application type, select Web application, and enter the name of your OAuth 2.0 client.
After these steps are completed, make sure to insert Authorized Redirect URI in this format:
your-domain/auth/google/callback
10. Copy the Client ID and Client Secret info, as we need it to configure the CloudPBX side.
Login to CloudPBX > Navigate to Tenant > Settings > Single Sign-On > Providers
Edit the required provider
Enable: Enable the Google provider for Single Sign-On.
Client ID: The Client ID is obtained during the App configuration.
Client Secret: The Client Secret is obtained during the App configuration.
Ensure that other settings in the CloudPBX are configured as required