Freedam

SAML Single Sign-On

The SAML single sign-on card of the Single sign-on tab of Access Settings connects your workspace to your company's identity provider with SAML 2.0.

Who can use it

The card is part of Access Settings, which only people with the Manage system settings permission can open. Choosing a role other than the default role in a role mapping also needs the Assign roles to users permission. SAML single sign-on is included in the Business plan and in Tailored plans.

The SAML card

  • What it's for: Letting people sign in through your company's identity provider, such as Microsoft Entra ID, Okta or Google Workspace, with SAML 2.0.
  • Where to find it: The SAML single sign-on card of the Single sign-on tab, below the Single sign-on card.
  • Typical use: Your IT team manages who works at the company in one identity provider and wants Freedam to follow it.
  • Result: The login page shows a Continue with {name} button, with the name you gave the connection.

A workspace has one SAML connection. It is saved with its own Save SAML connection button, not with Save Changes. After a test sign-in, the page opens on the Single sign-on tab. Every change asks you to confirm it is you, unless you did within the last few minutes: with your authenticator app or a passkey when you have set one up, otherwise with your password.

The SAML single sign-on card before a connection exists, with the connection name field

Before a connection exists, the card explains the set-up and asks for a Connection name. Enter one and click Add SAML connection. Nothing changes for your users until you switch the connection on.

Once the connection exists, the card shows the Connection name, then three tabs:

Tab What it holds
Set-up The four steps that put the connection in service, in the order you do them.
Accounts and attributes What signing in does to accounts: account creation, the attributes Freedam reads, roles and groups from the identity provider, and what a sign-in updates.
Sign-in attempts The latest attempts through the connection. A red dot marks the tab when the latest attempt failed.

The Set-up tab has four numbered steps:

  1. Register this workspace at your identity provider: the values to copy into your identity provider.
  2. Identity provider: the values your identity provider gives you.
  3. Test sign-in: checks the saved values.
  4. Switch the connection on: the Sign in with {name} switch.

The number of a step turns into a green check once the step is done. Steps 1 and 3 are checked together, once a test sign-in has passed: that is when Freedam knows the workspace is registered at your identity provider. A badge next to the card's title gives the state of the connection: Setup not finished, Test sign-in needed, Ready to switch on or On.

Save SAML connection is at the top of the card and saves the three tabs at once. It is available once you change something, with the note "Unsaved changes" next to it. Delete is at the bottom of the card.

The Set-up tab of the SAML single sign-on card for a connection whose test sign-in passed: the Ready to switch on badge and four numbered steps, the first three checked

Register the workspace at your identity provider

Step 1 shows three values to copy into the SAML application you create at your identity provider. Each has a copy button:

  • Entity ID (audience) and metadata URL: identifies your workspace. Opening it returns the workspace's SAML metadata, which some identity providers import directly.
  • Assertion consumer service (ACS) URL: where the identity provider sends its response.
  • Sign-in URL: starts a sign-in from the workspace. Use it when your identity provider asks for one.

Open the metadata document opens the workspace's SAML metadata in a new tab, for identity providers that ask for a file.

These values use your workspace's Freedam address, also when the workspace has a custom domain, so they stay valid if the custom domain changes.

Identity provider values

Enter your identity provider's Metadata address (URL), or paste its Metadata document (XML), and save: Freedam reads the Identity provider entity ID (issuer), the Sign-in URL (HTTP-Redirect) and the Signing certificates from it. You can also enter the three values by hand.

Freedam accepts a response only when the response or its assertion is signed with one of the stored certificates. A stored certificate shows as one line with its expiry date and a Remove button. To replace it, click Add certificate and paste the new one. You can store two: when your identity provider renews its certificate, add the new one before the old one expires, then remove the old one. Administrators get an email 30, 7 and 1 days before a certificate of an enabled connection expires.

Test sign-in

Run a test sign-in sends you to your identity provider and back. It is available once every change in the card is saved, on any of its tabs, because the test uses the saved values, attribute names included. A test signs nobody in to the workspace. You can run it from the workspace's Freedam address or from its custom domain. When it passes, Freedam shows the email address and the attributes it received, and the step shows "Last test passed" with the date; when it fails, it says why, for example that the audience does not match the entity ID or that the signature does not match the stored certificates.

A first test often fails with "The response carries no valid email address": many identity providers send an identifier in the NameID, not the email address. The test is listed on the Sign-in attempts tab with the attributes the response carried. Copy the name of the attribute that holds the address into Email address on the Accounts and attributes tab, save, and run the test again.

The Sign in with {name} switch unlocks once a test has passed with the saved identity provider values. Changing one of those values switches the connection off until a new test passes, so a typing mistake cannot lock people out.

Attributes

On the Accounts and attributes tab. By default Freedam reads the email address from the NameID. If your identity provider sends it in an attribute instead, enter the attribute's name under Email address. Enter the full name as the identity provider sends it, which is often a URI such as http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress. First name, Last name and Full name name the attributes used for the name of an account created on first sign-in.

A person who signed in once is recognised by their NameID afterwards, so their account stays the same when their email address changes at the identity provider.

Roles and groups from the identity provider

Under Attributes, Groups and Role name the attributes that carry a person's groups and role at your identity provider. Both can name the same attribute, for example a groups attribute.

  • Roles from the identity provider: each line gives a role to people who hold a value. The list is read from top to bottom and the first match gives the role. Choosing a role other than the default role needs the Assign roles to users permission.
  • Groups from the identity provider: each line puts people who hold a value into a user group. A person joins every group they match. Only groups you may add members to can be mapped, and never the Tenant Admins group.

A value matches when it is exactly the one the identity provider sends. The Sign-in attempts tab shows the values received, which helps when a mapping does not apply.

The Accounts and attributes tab of the SAML single sign-on card: account creation, attribute names, role and group mappings, and what a sign-in updates

Update accounts at each sign-in

At the bottom of the Accounts and attributes tab. New accounts always get the mapped name, role and groups. For accounts that already exist, three switches decide what a sign-in updates:

  • Name: the name is replaced by the one the identity provider sends.
  • Groups: the person joins the mapped groups they match and leaves the mapped groups they no longer match. Groups that no mapping names stay as they are.
  • Role: the person gets the role of the first mapping they match. Without a match the role stays as it is. Tenant admins always keep their role, so the password sign-in they keep when single sign-on is required cannot be taken away by the identity provider.

Latest sign-in attempts

The Sign-in attempts tab lists the last 20 attempts through the connection, kept for 30 days: who signed in, whether an account was created, and why an attempt was refused, with the attributes the identity provider sent. Test sign-ins are listed too. Click the number of attributes received under an attempt to see their names and values.

A person whose sign-in is refused sees "Sign-in with the identity provider could not be completed. If this happens again, contact your workspace administrator." on the login page. The reason is only shown to administrators, on this tab.

The Sign-in attempts tab of the SAML single sign-on card: a refused attempt with its reason, a sign-in and a passed test sign-in

Sign-in started at the identity provider

In step 4, below the switch, Allow sign-in started at the identity provider lets people open the workspace from their identity provider's application list. When it is off, sign-in must start from the workspace login page.

Accounts and plan

At the top of the Accounts and attributes tab, Create accounts on first sign-in and the role for new accounts work as for Google and Microsoft: see Account creation on first sign-in. An email address that already has an account signs in to that account.

SAML single sign-on is part of single sign-on: it is included in the Business plan and in Tailored plans, and follows the plan requirement. An enabled SAML connection also counts as an SSO provider for Require single sign-on.

Complete Workflows

Workflow: Connecting a SAML identity provider

  • Goal: Let people sign in through your identity provider with SAML 2.0.
  • Prerequisites: Your workspace plan includes single sign-on, and you can create a SAML application at your identity provider.

Steps:

  1. On the Single sign-on tab, in the SAML single sign-on card, enter a Connection name and click Add SAML connection.
  2. At your identity provider, create a SAML application and copy the Entity ID and the ACS URL from the card into it.
  3. Copy the identity provider's metadata document, paste it into Metadata document (XML) in step 2 and click Save SAML connection at the top of the card.
  4. Click Run a test sign-in and sign in at your identity provider.
  5. Back on the page, check the email address and attributes shown in the confirmation. If the test says the response carries no valid email address, open Sign-in attempts, copy the name of the attribute that holds the address into Email address on the Accounts and attributes tab, save, and run the test again.
  6. In step 4, switch on Sign in with {name} and click Save SAML connection.
  • Expected result: The login page shows Continue with {name}, and people in your identity provider can sign in.

Troubleshooting

Issue: The SAML test sign-in fails

  • Cause: The values registered on one side do not match the other side. The message after the test names the mismatch.
  • Solution: For an audience or destination mismatch, copy the Entity ID and the ACS URL again into the identity provider's application. For a signature mismatch, paste the identity provider's current metadata document and save. For a missing email address, set the Email address attribute to the name shown under the attempt on the Sign-in attempts tab. For an expired response, check the clock of the identity provider.

Issue: A person cannot sign in with SAML

  • Cause: The person sees "Sign-in with the identity provider could not be completed. If this happens again, contact your workspace administrator." The identity provider's response was refused, for example because it carries no email address for that person.
  • Solution: Open the Sign-in attempts tab: the attempt gives the reason and the attributes the identity provider sent. A person without an email address at the identity provider cannot sign in until one is set there.

Try Freedam

Related Documentation

Explore more in this category