website/docs/users-sources/sources/social-logins/google/workspace/index.md
Allows users to authenticate using their Google Workspace credentials by configuring Google Workspace as a federated identity provider via SAML.
Google Workspace (formerly G Suite) is a collection of cloud computing, productivity and collaboration tools, software and products developed and marketed by Google.
Organizations using Google Workspace allow their users to authenticate into applications using their company email addresses. This guide shows how to set up Security Assertion Markup Language (SAML) as the authentication method between Google Workspace and authentik.
This sequence diagram shows a high-level flow between user, authentik, Google Workspace, and the target application.
sequenceDiagram
autonumber
participant User
participant authentik
participant Google
participant App
User->>App: User navigates to app...
App-->>authentik: ← Redirected to authentik
Note over authentik: User chooses "Google Workspace"
authentik-->>Google: Redirect to Google →
Note over Google: Authenticate with email and password
Google-->>authentik: ← Redirect to authentik
authentik-->>App: Redirect to app →
In short, the user navigates to the application, is redirected to authentik, chooses Google Workspace as the authentication method, authenticates with Google, and is redirected back to the application.
The key characteristic that makes this an IdP-to-IdP flow is that authentik is acting as an intermediary identity provider, brokering trust between your application and Google Workspace.
The following placeholders are used in this guide:
authentik.company is the FQDN of the authentik installation.google-slug is the slug you will assign to the SAML source in authentik (e.g., google).authentik.Single Sign-On for authentik.:::info Entity ID authentik is acting as both a Service Provider (SP) to Google and an Identity Provider (IdP) to your applications. Since we only need the SP configuration, you can ignore the Entity ID provided by Google. :::
https://authentik.company/source/saml/<google-slug>/acs/.https://authentik.company/source/saml/<google-slug>/metadata/.https://authentik.company.EMAIL.Basic Information > Primary Email.Basic Information > Primary Email.email.Google Workspace Signing Certificate.Google Workspace.google (must match the slug used in Google Workspace ACS URL).https://authentik.company/source/saml/<google-slug>/metadata/.Email address.:::info Display new source on login screen For instructions on how to display the new source on the authentik login page, refer to the Add sources to default login page documentation. :::
:::info Embed new source in flow :ak-enterprise For instructions on embedding the new source within a flow, such as an authorization flow, refer to the Source Stage documentation. :::
403 app_not_configured_for_user: Ensure the Entity ID matches between Google Workspace and authentik. The Entity ID must be identical in both configurations.403 app_not_enabled_for_user: Enable the application for your organization in the Google Workspace Admin Console under Apps > Web and mobile apps.