> ## Documentation Index
> Fetch the complete documentation index at: https://docs.langdock.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Google SAML Setup

> Enable your users to sign in to Langdock using their Google accounts via SAML 2.0.

## Overview

This guide walks you through configuring SAML single sign-on with Google Workspace. You'll create a custom SAML app in your Google Admin console, configure the authentication settings, and establish a secure connection between your identity provider and Langdock.

Once complete, your users will be able to sign in to Langdock using their Google Workspace credentials.

## Setup Checklist

Verify that you have completed these steps from the [setup checklist](/en/admin/security/saml/saml#setup-checklist):

<Warning>
  * You have access to an admin account in your Langdock workspace
  * "Join by domain" is enabled in your Langdock security settings
  * Your domain is added and verified in your Langdock security settings
  * You have a Google Workspace Admin account with the ability to create and manage Apps
</Warning>

## Create a new custom SAML app

First, you need to create a new custom SAML app in your Google Workspace Admin console.

To do this, follow these steps:

1. In your Admin console, navigate to the Menu and then **"Apps"** and then **"Web and mobile apps"**
2. Create a new custom SAML application by clicking on **"Add app"** and **"Add custom SAML app"**
3. Name your application (e.g., "Langdock") and, optionally, upload an icon
4. Click **Continue**

<img src="https://mintcdn.com/langdock-34/n3Mlc6DLTZAKfh4q/images/google-1.png?fit=max&auto=format&n=n3Mlc6DLTZAKfh4q&q=85&s=0cd05d7f100e6f0c1f59d332d6a52277" alt="Navigate to Apps > Web and mobile apps in your Google Admin center" data-og-width="3024" width="3024" data-og-height="1260" height="1260" data-path="images/google-1.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/langdock-34/n3Mlc6DLTZAKfh4q/images/google-1.png?w=280&fit=max&auto=format&n=n3Mlc6DLTZAKfh4q&q=85&s=905a271e99d345fcfdbac4407bf7e181 280w, https://mintcdn.com/langdock-34/n3Mlc6DLTZAKfh4q/images/google-1.png?w=560&fit=max&auto=format&n=n3Mlc6DLTZAKfh4q&q=85&s=12e048a92bf20f35a2de0a3a2982f156 560w, https://mintcdn.com/langdock-34/n3Mlc6DLTZAKfh4q/images/google-1.png?w=840&fit=max&auto=format&n=n3Mlc6DLTZAKfh4q&q=85&s=30070fc5a2749352b328891263c5fad8 840w, https://mintcdn.com/langdock-34/n3Mlc6DLTZAKfh4q/images/google-1.png?w=1100&fit=max&auto=format&n=n3Mlc6DLTZAKfh4q&q=85&s=fbda44172a05faec34de6233f92ee4c9 1100w, https://mintcdn.com/langdock-34/n3Mlc6DLTZAKfh4q/images/google-1.png?w=1650&fit=max&auto=format&n=n3Mlc6DLTZAKfh4q&q=85&s=9f7277c86464bc8a26b45ca22ccfb5b4 1650w, https://mintcdn.com/langdock-34/n3Mlc6DLTZAKfh4q/images/google-1.png?w=2500&fit=max&auto=format&n=n3Mlc6DLTZAKfh4q&q=85&s=c58b2784ffd0641902759a36069482a9 2500w" />

<img src="https://mintcdn.com/langdock-34/n3Mlc6DLTZAKfh4q/images/google-2.png?fit=max&auto=format&n=n3Mlc6DLTZAKfh4q&q=85&s=0391876d734f3b37d648f83f9488f1cd" alt="Click on add an App and select the option &#x22;Add custom SAML app&#x22;" width="3024" height="1094" data-path="images/google-2.png" />

<img src="https://mintcdn.com/langdock-34/n3Mlc6DLTZAKfh4q/images/google-3.png?fit=max&auto=format&n=n3Mlc6DLTZAKfh4q&q=85&s=5fe1464f0ad5cf536142cae6f2808eca" alt="Give the app a name (Langdock) and add an icon and description if you want to" width="3024" height="1890" data-path="images/google-3.png" />

## SAML Configuration

Langdock uses SAML 2.0 as the standard for SSO authentication. After creating the application, you need to configure the SAML settings, which will allow Langdock to authenticate users via SAML.

First, you need to copy configuration values from the Google Workspace Admin console to Langdock.

In Langdock, navigate to the [Security settings](https://app.langdock.com/settings/workspace/security) and fill out the following fields:

1. **"Audience URI"**: Set this to a unique identifier for your SAML app (e.g., `langdock.com`)
2. **"Issuer"**: Use the same value as the Audience URI (e.g., `langdock.com`)
3. **"Sign on URL"**: The "SSO URL" value from Google Workspace Admin console (e.g., `https://accounts.google.com/o/saml2/idp?idpid=XXXXXXXXX`)
4. **"Certificate"**: The "Certificate" value from Google Workspace Admin console. Copy the entire certificate so that the beginning and end match the example below:

```
-----BEGIN CERTIFICATE-----
...
-----END CERTIFICATE-----
```

<img src="https://mintcdn.com/langdock-34/n3Mlc6DLTZAKfh4q/images/google-4.png?fit=max&auto=format&n=n3Mlc6DLTZAKfh4q&q=85&s=e0a7f7acf4c007668fac2af9df4cce58" alt="" width="3024" height="1890" data-path="images/google-4.png" />

<img src="https://mintcdn.com/langdock-34/yFkcGlsUCYIpoHgV/images/google-5.png?fit=max&auto=format&n=yFkcGlsUCYIpoHgV&q=85&s=bfd7482bef74ba754f6aaf583642b204" alt="" width="3024" height="1890" data-path="images/google-5.png" />

Once all four fields are filled in, activate the **"SAML Active"** toggle.

Now, you can click **"Continue"** in the Google Workspace Admin console to proceed with the SAML configuration.

In the **"Service provider details"** section, you need to fill in the following values:

1. **"ACS URL"**: The "Assertion Consumer Service (ACS) URL" value from Langdock
2. **"Entity ID"**: The same value as the "Audience URI" / "Issuer" field (e.g., `langdock.com`)
3. **"Signed response"**: Make sure this is checked

You can leave the other fields empty or with their default values. (**"Name ID format"**: UNSPECIFIED and **"Name ID"**: Basic Information > Primary email). Click **"Continue"** to proceed.

<img src="https://mintcdn.com/langdock-34/yFkcGlsUCYIpoHgV/images/google-6.png?fit=max&auto=format&n=yFkcGlsUCYIpoHgV&q=85&s=41c78d4659247e0506cdb1fdaa91dbde" alt="" width="3024" height="1890" data-path="images/google-6.png" />

In the **"Attribute mapping"** section, you can leave the default values or map additional attributes if needed. Click **"Finish"** to complete the SAML configuration.

<img src="https://mintcdn.com/langdock-34/yFkcGlsUCYIpoHgV/images/google-7.png?fit=max&auto=format&n=yFkcGlsUCYIpoHgV&q=85&s=e9c142d213c07dc7b77e015935b96c46" alt="" width="3024" height="1614" data-path="images/google-7.png" />

Make sure to assign the application to the users or groups in your Google Workspace account who should have access to Langdock.

<img src="https://mintcdn.com/langdock-34/yFkcGlsUCYIpoHgV/images/google-8.png?fit=max&auto=format&n=yFkcGlsUCYIpoHgV&q=85&s=21dd60f67cd4007ecaae1079e91ddb7a" alt="" width="3024" height="1370" data-path="images/google-8.png" />

## Test the SAML setup

To test the SAML setup, open a separate browser or an incognito window and navigate to [https://app.langdock.com](https://app.langdock.com).

Enter an email address of a user in your Google Workspace account and click **"Continue"**.

You will be redirected to the Google login page, where you can enter your credentials.

After successful authentication, you will be redirected back to Langdock and logged in.

<img src="https://mintcdn.com/langdock-34/yFkcGlsUCYIpoHgV/images/google-9.png?fit=max&auto=format&n=yFkcGlsUCYIpoHgV&q=85&s=bdaaa98520f15af4cee784a822b02098" alt="" width="3024" height="1816" data-path="images/google-9.png" />

<img src="https://mintcdn.com/langdock-34/n3Mlc6DLTZAKfh4q/images/google-10.png?fit=max&auto=format&n=n3Mlc6DLTZAKfh4q&q=85&s=c572680d60d0dc1c391a87c2006a6a3d" alt="" width="3024" height="1814" data-path="images/google-10.png" />

## Troubleshooting

If you encounter any issues during the setup, please reach out to [support@langdock.com](mailto:support@langdock.com) for assistance.
