docs/versioned_docs/version-2.50.0-LTS/user-authentication/sso/saml.md
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.
<div style={{paddingTop:'24px'}}>To enable SAML authentication, you need to configure the following workspace settings:
Go to Workspace Settings > Workspace login.
By default, SAML is disabled. Toggle it on to enable SAML authentication.
Enter the following configuration details:
:::tip Downloading the metadata from your identity provider Generally, the metadata is available in the form of an XML file which can be downloaded from your identity provider's dashboard.
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.
Additionally, you can often find this data by navigating to https://<your-identity-provider>/federationmetadata/2007-06/federationmetadata.xml
:::
| variable | value |
|---|---|
| SAML_SET_ENTITY_ID_REDIRECT_URL | true |
| TOOLJET_SERVER_URL | <URL must be the same as the ToolJet host> |
:::
:::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> |
Note: If you are using the multiple workspaces setting, you do not need to configure the SAML_SET_ENTITY_ID_SERVER_URL variable.
:::
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.
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.
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.
Click on Sign in with SAML Name button and you will be redirected to the SAML provider's login page.
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.