Skip to content

Log in to Google Workspace using WSO2 Identity Server

Legacy SSO Profile

Google has marked their old SSO profile as legacy and now supports a new profile. We recommend using the new profile for better compatibility. If you still need to set up the legacy profile, refer to Google's legacy guide and use our Standard-Based SAML template.

This page guides you through integrating WSO2 Identity Server for Single Sign-On (SSO) with Google.

Before you begin

You need to have a Google domain. Further, ensure you have a Google Workspace account and your account supports SSO by referring to the Google documentation.

If you're testing the integration locally, make sure to configure a hostname.

Create the Google Workspace application

Follow the steps given below to register the Google Workspace application in WSO2 Identity Server.

  1. On the WSO2 Identity Server Console, go to Applications.

  2. Click New Application and under SSO Integrations, select Google Workspace.

    Select app type in the WSO2 Identity Server

  3. Provide the Entity ID and a Name for the application.

    Entity ID

    A unique URL dynamically generated for your Google SAML SSO profile. To find it, follow Google's guide on creating a SAML SSO profile. Once completed, copy the Entity ID from the SP Details section of the specific SAML SSO profile.

    Note: While setting up the SAML SSO profile in Google, simply provide a name first. The IdP details can be added later.

    Select google workspace app in the WSO2 Identity Server

  4. Click Create to complete the registration.

  5. Download WSO2 Identity Server's certificate from the Guide tab of the created application.


Configure Google

Follow the steps below to configure Google for SSO authentication with WSO2 Identity Server.

  1. Access your Google domain's admin console.

  2. Follow Google’s instructions to configure the SSO profile for your organization. Use the details below:

    • IDP entity ID: is.dev.wso2.com

    • Sign-in page URL: https://is.dev.wso2.com:9443/samlsso

    • Sign-out page URL: https://is.dev.wso2.com:9443/samlsso

    • Password URL: https://is.dev.wso2.com/t/carbon.super/myaccount/security

  3. Upload WSO2 Identity Server's certificate you downloaded earlier.

    sso-fill-google.png

Try it out

Now that you have integrated WSO2 Identity Server with Google Workspace, follow the steps below to test it.

Note

Google restricts administrators from being redirected to external identity providers. Therefore, use a non-administrator account to try it out.

  1. Create a new account in WSO2 Identity Server for a user that already exists in Google Workspace under the same email address.

  2. Navigate to Google and enter the email address of the user you created. You will be navigated to WSO2 Identity Server's login page.

  3. Enter the username and password for the user to login. Once authenticated, you will be navigated to the relevant domain's G-Suite.

Note

If you only wish to access Gmail, navigate to mail.google.com, and repeat the process.