Google OAuth2 Setup

Google OAuth2 Setup


Google OAuth is commonly used in Pluto LMS to provide secure and convenient authentication and authorization for users. 

By integrating Google OAuth into an LMS, institutions can simplify user registration and login processes, enhance security, and provide users with the convenience of single sign-on (SSO) using their Google credentials. It also allows the LMS to leverage Google's suite of services to enrich the learning experience, such as integrating with Google Workspace for collaborative document editing or using Google Calendar for course scheduling.

Single Sign-On (SSO) with Google OAuth 2.0 in an LMS

Scenario: A university uses an LMS to manage course content, student enrollment, and communication among students and instructors. To streamline access for students and instructors while ensuring security, the university implements Google OAuth 2.0 for Single Sign-On.

By implementing Google OAuth 2.0 in this use case, the university's LMS simplifies user access, enhances security, and leverages the power of Google services for a more efficient learning experience.


Step 1.1: To set up an OAuth 2 client with Google, you need to first login to the Google Cloud Console and create a new project.

Click here to learn more about creating and managing projects within GCC.

Step 1.2: Give your new project a name and define your organization and location settings. Then click on "Create":

Step 2.1: Select "OAuth consent screen" from the menu on the left. Then select "External" to allow new users to signup to your LMS with their Google Account. Finally, click on "Create":

Step 2.2: Give your app a public name (shown to your end users on SSO login), set your support email, then scroll down:

Step 2.3: Enter your business details such as your website home page, privacy policy and terms of service. You will also need to add your authorised business domain here.

These details will be used by Google to verify your business.

Step 2.4: Scroll down further to enter your preferred contact email for Google notifications:

Step 2.5: Click on "Save and continue" through Scopes and Test users.


Step 3.1: Select "Credentials" from the menu on the left, then select "+ CREATE CREDENTIALS", then "OAuth client ID":

Step 3.2: Setup the credentials for a Web Application and give your Client a name. 

Then set the "Authorized redirect URI" to "your Pluto LMS site URL + /admin/oauth2callback.php". If your Pluto LMS site is available at the callback URL would be

Step 3.3: After setting up your App credentials, you can access the Client ID and Client Secret by click on the pencil icon below:  

Step 3.4: Copy your Client ID and Client Secret:  


Step 4.1: Click on "Site admin", followed by "Integrations" and then, under "Single Sign On", click on "Connect services/OAuth2."

Step 4.2: Click on the Google gear icon as shown below.

Step 4.3: Add your Client ID and Client Secret (from Step 2 above), then leave other settings and click on save changes: 

Step 4.4: (1) Connect a verified test account

Note: This user account must be within your Google Workplace account. Please contact Google support for help with adding and managing users within your Google Console account. 

and once you have the green tick, (2) unhide the integration so that users can begin logging into your LMS with their Google accounts. 


If the Google OAuth2 SSO login button has been successfully setup on your Pluto LMS, you will see this: 

    • Related Articles

    • Google Meet Setup

      OVERVIEW This guide will assist you in setting up Google Meet on your LMS. USE CASE EXAMPLE: New Product Training for Sales Team Background: A company has developed a new product and needs to train its sales team on its features, benefits, and how to ...
    • Single Sign On

      OVERVIEW Single sign-on (SSO) in a Learning Management System (LMS) for internal staff training is a streamlined authentication process that enables users to access the LMS and other related systems and applications with a single set of login ...
    • Facebook OAuth2

      OVERVIEW OAuth 2 Facebook login is used to simplify the login for users who are used to logging into facebook. Login in with a OAuth2 authentication means that you can login with your facebook credentials. USE CASE EXAMPLE: Facebook OAuth2 can be ...
    • Custom OAuth2

      OVERVIEW Pluto LMS , supports OAuth2 for integrating with external services and enabling Single Sign-On (SSO) capabilities. Here's a short overview of how custom OAuth2 is used. Custom OAuth2 integration in PLuto LMS enables educational institutions ...
    • LinkedIn OAuth2 Setup

      OVERVIEW You can provide a "Log in using LinkedIn" feature on your LMS login page by creating a new app on the LinkedIn Developers page and then adding the client ID and secret obtained here to the preconfigured service on your Pluto LMS. USE CASE ...