ToolJet/docs/versioned_docs/version-2.50.0-LTS/user-authentication/sso/saml.md

82 lines
4.3 KiB
Markdown
Raw Normal View History

---
id: saml
title: SAML
---
ToolJet supports SAML authentication for your workspace. The supported SAML providers are: Okta, Active Directory Federation Services, Azure AD, Auth0 and other SAML SSO providers.
2024-11-07 11:44:50 +00:00
<div style={{paddingTop:'24px'}}>
2024-11-07 11:44:50 +00:00
## Configuring SAML
To enable SAML authentication, you need to configure the following workspace settings:
2024-11-07 11:44:50 +00:00
1. Go to **Workspace Settings** > **Workspace login**.
<img className="screenshot-full" src="/img/sso/saml/workspaceset-v2.png" alt="SSO :SAMP" />
2. By default, SAML is disabled. Toggle it on to enable SAML authentication.
2024-11-07 11:44:50 +00:00
<img className="screenshot-full" src="/img/sso/saml/enable-v2.png" alt="SSO :SAMP" />
3. Enter the following configuration details:
2024-11-07 11:44:50 +00:00
- **SAML Provider Name**: Enter the name of your SAML provider. This name will be displayed on the login page.
- **Identity provider metadata**: Upload the data from the metadata file provided by your SAML provider. This file contains the SAML configuration details.
- **Group Attribute**: Enter the name of the attribute that contains the group information of the user. This attribute is used to map the user to the appropriate group.
- **Redirect URL**: Copy the redirect URL provided and paste it in the SAML provider's configuration page.
2024-11-07 11:44:50 +00:00
<br/>
2024-12-19 14:43:32 +00:00
:::tip Downloading the metadata from your identity provider
2024-11-07 11:44:50 +00:00
Generally, the metadata is available in the form of an XML file which can be downloaded from your identity provider's dashboard.
2024-11-07 11:44:50 +00:00
Copy the metadata from the XML file and paste it into the ToolJet's SAML SSO configuration settings. Please ensure that the metadata is pasted in the correct format, as it contains essential configuration details from the identity provider necessary for authentication.
2024-11-07 11:44:50 +00:00
Additionally, you can often find this data by navigating to https://&ltyour-identity-provider&gt/federationmetadata/2007-06/federationmetadata.xml
2024-12-19 14:43:32 +00:00
:::
2024-11-07 11:44:50 +00:00
<img className="screenshot-full" src="/img/sso/saml/config-new-v3.png" alt="SSO :SAMP" />
4. Once configured, click **Save Changes**.
</div>
2024-12-19 14:43:32 +00:00
:::tip SAML for multiple workspaces
2024-12-19 14:43:32 +00:00
- The multiple workspaces feature is available only in versions **v2.50.9.46-lts** and later.
- Configure the required environment variables as below:
| variable | value |
| ---------------------- | ----------------- |
| SAML_SET_ENTITY_ID_REDIRECT_URL | `true` |
| TOOLJET_SERVER_URL | `<URL must be the same as the ToolJet host>` |
2024-12-19 14:43:32 +00:00
:::
:::tip SAML for Google and Azure
Configure the required environment variable as follows:
| variable | value |
| ---------------------- | ----------------- |
| SAML_SET_ENTITY_ID_SERVER_URL | `true` |
| TOOLJET_SERVER_URL | `<URL must be the same as the ToolJet host>` |
2024-12-19 14:43:32 +00:00
Note: If you are using the multiple workspaces setting, you do not need to configure the `SAML_SET_ENTITY_ID_SERVER_URL` variable.
:::
2024-11-07 11:44:50 +00:00
<div style={{paddingTop:'24px'}}>
2024-11-07 11:44:50 +00:00
## Logging in with SAML
2024-11-07 11:44:50 +00:00
1. Go to the **Workspace login** and copy the **Login URL** provided. Furthermore, you have the flexibility to choose whether to turn on 'Enable Signups' allowing users to signup without an invite. Through SSO authentication, we check if the user already exists; if so, they can sign in seamlessly. Otherwise, an error will be displayed. Conversely, with this option disabled, only invited users can log in, provided SSO authentication is successful.
<img className="screenshot-full" src="/img/sso/saml/url-v3.png" alt="SSO :SAML"/>
2024-11-07 11:44:50 +00:00
2. The **Login URL** obtained can be used to access the workspace. Please note that ToolJet supports SAML login at the workspace level, ensuring users are logged in specifically to the selected workspace. <br/>
As a result, users can now log in to your workspace using the provided Login URL. The login page will prominently feature the name of the SAML provider configured in your workspace settings.
<img className="screenshot-full" src="/img/sso/saml/login.png" alt="SSO :SAMP" />
3. Click on **Sign in with `SAML Name`** button and you will be redirected to the SAML provider's login page.
2024-11-07 11:44:50 +00:00
<img className="screenshot-full" src="/img/sso/saml/auth.png" alt="SSO :SAMP" />
4. Enter your credentials and click **Login**. If the user is signing in for the first time, they will be redirected to the ToolJet's onboarding page.
2024-12-19 14:43:32 +00:00
</div>