SAML Single Sign-On (SSO)¶
This guide provides comprehensive instructions to configure SAML-based Single Sign-On (SSO) in DRACO. This configuration allows users to authenticate using the organization's Identity Provider (IdP).
This document is divided into two main sections:
-
User Guide: For organization administrators to configure SAML SSO through DRACO.
-
API reference: For developers who manage the SAML configuration through the DRACO API.
User Guide Configuration¶
Follow these steps to enable and configure SAML SSO for an organization.
Key Features¶
DRACO can be integrated with SAML SSO identity providers such as Okta to enable single sign-on for the organization's users. The DRACO SAML integration currently supports the following features:
- IdP-Initiated SSO: Users can initiate login from their Identity Provider's dashboard.
- SP-Initiated SSO: Users can initiate login directly from the DRACO login page.
- Just-in-Time Provisioning: Users from the organization signing into DRACO for the first time will be automatically created.
Warning
Deactivate SAML
If the SAML configuration is removed, users who previously authenticated via SAML will need to reset their password to regain access using standard login (see Forgot your password). This occurs because accounts no longer have valid authentication credentials without the SAML integration.
Prerequisites¶
- Read-Write in the Integrations area of the DRACO organization.
- Administrative access to the SAML 2.0 compliant Identity Provider (e.g., Okta, Azure AD, Google Workspace) is necessary.
Configuration Steps¶
Step 1: Access Profile Settings¶
To access the account settings, open your Profile (/profile on your DRACO address).
Step 2: Enable SAML Integration¶
On the profile page, find the "SAML SSO Integration" card and click Enable to begin the configuration process.
The next section explains how to configure the IdP settings based on the selected Identity Provider.
Step 3: Configure the Identity Provider (IdP)¶
Any SAML 2.0 identity provider works (Okta, Microsoft Entra ID, Google Workspace, Keycloak...).
DRACO displays the SAML configuration information needed to configure the IdP. Use this information to create a new SAML application in the IdP.
- Assertion Consumer Service (ACS) URL: The endpoint in DRACO that will receive the SAML assertion from the IdP.
- Audience URI (Entity ID): A unique identifier for the DRACO application (Service Provider):
urn:draco-security.com:sp.
To configure the IdP, copy the ACS URL and Audience URI from DRACO and use them to set up a new SAML application.
Info
IdP Configuration
The exact steps for configuring an IdP vary depending on the provider (Okta, Microsoft Entra ID, Google Workspace, etc.). Refer to the IdP's documentation for instructions on creating a SAML application.
Configure Attribute Mapping in the IdP
For DRACO to correctly identify and provision users, configure the IdP to send the following attributes in the SAML assertion:
| Attribute Name | Description | Required |
|---|---|---|
firstName |
The user's first name. | Yes |
lastName |
The user's last name. | Yes |
userType |
Determines which DRACO role the user receives (e.g., admin, auditor). If a role with that name already exists, the user receives it automatically; if it does not exist, DRACO creates a new role with that name with read-only access (visibility over all providers, no management permissions). A DRACO administrator can adjust its permissions under Settings > Organization > Roles. A mapped role replaces the user's other roles in the organization. If userType is not defined, DRACO applies the fallback behavior described below. |
No |
organization |
The user's company name. | No |
Fallback Role Without userType
If userType is not defined, the user's existing roles are left unchanged. Users without an existing role in that tenant receive a least-privilege read_only fallback role. If read_only already belongs to a role with different permissions, DRACO checks suffixed names in order, starting with read_only_0. It reuses the first role with the fallback permissions or creates the first available name. A DRACO administrator can then assign the appropriate role under Settings > Organization > Roles.
Info
IdP Attribute Mapping
Note that the attribute name is just an example and may be different depending on the IdP. For instance, if the IdP provides a division attribute, it can be mapped to userType.
Warning
Single-Value userType Required
Map userType to an IdP attribute that always contains a single value. If the IdP sends multiple values, DRACO uses only the first value and does not assign multiple roles or select the highest-privilege role.
Warning
Dynamic Updates
DRACO updates these attributes each time a user logs in. Any changes made in the Identity Provider (IdP) will be reflected when the user logs in again.
Step 4: Upload IdP Metadata to DRACO¶
Once the IdP is configured, it provides a metadata XML file. This file contains the IdP's configuration information, such as its public key and login URL.
To complete the DRACO configuration:
-
Return to the DRACO SAML configuration page.
-
Enter the Primary Email Domain of the organization (e.g.,
mycompany.com). DRACO uses this domain to generate the Assertion Consumer Service (ACS) URL. Only users whose email address is on this exact domain can sign in through this SAML configuration (subdomains and other domains cannot). -
Upload the metadata XML file downloaded from the IdP.
Step 5: Save and Verify Configuration¶
Click Save to save the configuration. The "SAML SSO Integration" card then shows "Domain not verified": nobody can sign in with SAML yet.
Step 6: Verify the Email Domain¶
DRACO only signs people in through SAML once your organization has proved that it owns the email domain:
- Copy the TXT record shown on the "SAML SSO Integration" card. It looks like
draco-verify=<token>. - Add it as a TXT record on the email domain itself (for example on
mycompany.com) at your DNS provider. - Click Verify domain. DNS changes can take a few minutes to appear; try again if the record is not found yet.
When the domain is verified the card shows "Enabled". Changing the primary domain later needs a new verification. Configurations created before domain verification existed are already verified.
Accounts and Sessions¶
- A user who already has a DRACO account is linked to SAML on their first SAML sign-in only when that account belongs to your organization alone. A user who also belongs to other organizations keeps signing in with their email and password; DRACO says so on the sign-in page.
- A session started with SAML stays in your organization: to open another organization the user signs in with their password (and two-factor code).
- Users with two-factor authentication on are asked for their code after the identity provider, as with a password sign-in.
- Each SAML response is accepted once.
Remove SAML Configuration¶
SAML SSO can be disabled by removing the existing configuration from the integration panel.
IdP-Initiated SSO¶
Once SAML SSO is configured, users can access DRACO directly from their Identity Provider's dashboard:
- Navigate to the IdP dashboard or portal
- Click the DRACO application tile
- The system automatically authenticates users and redirects them to DRACO
This method is convenient for users who primarily work from the IdP portal and prefer a seamless single-click access.
SP-Initiated SSO¶
Users can also initiate the login process directly from DRACO's login page:
- Navigate to the DRACO login page
-
Click "Continue with SAML SSO"
-
Enter their email address from the configured domain
-
The system redirects users to the IdP for authentication
- After successful authentication, users are returned to DRACO
This method is useful when users bookmark DRACO or navigate directly to the application.
SAML API Reference¶
DRACO provides a REST API to manage SAML configurations programmatically.
- Endpoint:
/api/v1/saml-config - Methods:
GET: Retrieve the current SAML configuration for the tenant.POST: Create a new SAML configuration.PATCH: Update an existing SAML configuration.DELETE: Remove the SAML configuration.
- Domain verification:
POST /api/v1/saml-config/{id}/verify-domainchecks thedraco-verify=<token>TXT record (domain_verification_recordin the configuration) and turns SAML sign-in on (domain_verified).
Note
API Documentation
For detailed information on using the API, refer to the DRACO API Reference (/api/v1/docs).
SAML Initiate Endpoint¶
- Endpoint:
POST /api/v1/accounts/saml/initiate/ - Description: This endpoint initiates the SAML login flow. It takes an email address, determines if the domain has a SAML configuration, and redirects the user to the appropriate IdP login page. It is primarily designed for browser-based flows.