Fonio

SSO with SAML

Let your team log in to Fonio with their company accounts from Microsoft Entra ID, Google Workspace or any other SAML 2.0 identity provider.

With single sign-on (SSO), your team logs in to Fonio with the company account they already use, for example from Microsoft Entra ID or Google Workspace. Your identity provider decides who gets in. You don't invite anyone: Fonio creates users automatically on their first login (just-in-time provisioning), with the role you map to them.

Fonio works with Microsoft Entra ID, Google Workspace and any other identity provider that supports SAML 2.0, such as Okta, JumpCloud or OneLogin.

Before you start

  • You are an admin of your company in Fonio.
  • SSO is enabled for your company. SAML SSO isn't included by default: it's available for selected subscriptions and subject to individual conditions. Contact support@fonio.ai to find out whether it's available for your company. Once it's on, you'll find SAML SSO under Company Settings → Login Methods.
  • You can create applications in your identity provider (for example as an Entra administrator or a Google Workspace super admin).

No risk of locking yourself out

Setting up SSO doesn't turn off password login. Everyone who has a Fonio password can keep using it, including you, so a mistake in the SSO setup never locks your company out. If SSO doesn't work, select Log in with a password instead on the SSO login page.

These values travel between Fonio and your identity provider:

FromToValue
FonioIdentity providerEntity ID (in Entra: Identifier)
FonioIdentity providerACS URL (in Entra: Reply URL)
Identity providerFonioSAML metadata, as a URL or an XML file
1

Start the setup in Fonio

Open Company Settings → Login Methods and switch on SAML SSO. The setup opens. Choose your identity provider: Microsoft Entra ID, Google Workspace or Other SAML 2.0 provider. Fonio then shows the instructions and default values for that provider.

2

Create the SAML app in your identity provider

Fonio shows the Entity ID and the ACS URL. Copy both into a new SAML application in your identity provider. Choose your identity provider below to see where they go.

  1. In the Microsoft Entra admin center, go to Enterprise applications → New application → Create your own application and choose Integrate any other application you don't find in the gallery (Non-gallery).
  2. Open Single sign-on → SAML. Under Basic SAML Configuration, enter the Identifier (Entity ID) and the Reply URL (Assertion Consumer Service URL) from Fonio.
  3. Under Attributes & Claims, set the Unique User Identifier (Name ID) to user.objectid. Users then keep their Fonio account even if their email address changes.
  4. Under SAML Certificates, copy the App Federation Metadata URL and paste it into Fonio.
  5. Under Properties, set Assignment required to Yes, and assign the users and groups who may use Fonio under Users and groups.
  6. For roles, create app roles in the app registration (for example with the value fonio.admin), assign them to users or groups, and map the values in Fonio.
3

Connect Fonio

Give Fonio your identity provider's SAML metadata, either as a metadata URL or as an XML file (at most 100 KB). Fonio reads the sign-in URL and the signing certificate from it.

Under Attributes, Fonio shows which attribute names it reads for the email address, first name, last name and role. For Entra ID, the defaults match what Entra sends, so there's nothing to set up. For Google Workspace and other providers, set up your identity provider to send these names. If your identity provider uses different names, change them under Custom attribute names.

4

Assign roles

Pick the default role that every new SSO user gets. Then map the role values your identity provider sends to Fonio roles, for example the app role fonio.admin or the Google group Fonio Admin to Admin. If a user has several mapped values, the role with the most access applies. Users without a mapped value get the default role.

Check your own role mapping

Roles are updated on every SSO login. If your own account logs in with SSO, make sure the role mapping gives you Admin; otherwise you'll get the default role at your next SSO login. Fonio never removes the last admin of a company this way: if the mapping would demote the only admin, they stay admin.

5

Select Enable SAML SSO. Fonio shows two links:

  • Login page: the Fonio SSO login page with your company ID filled in. Share this with your team.
  • Direct link: goes straight to your identity provider's sign-in. Use it as the sign-on URL in your identity provider or as a bookmark.
6

Test with one user

Before you tell your team, log in once in a private browser window with a test user who is assigned to the app in your identity provider. Check that the user is created in Fonio with the role you expect. Then share the login page, or verify your domain (see Domain management below) so your team can log in with just their work email.

How your team logs in

With their work email

They enter their work email on the Fonio login page and select Continue. If the email's domain is verified for your company, Fonio sends them straight to your identity provider.

With the login link

The link you shared opens the SSO login page with your company ID filled in. Continue with SSO sends them to your identity provider.

From your identity provider

For example the My Apps portal in Microsoft Entra ID or the app launcher in Google Workspace.

Login page
SSO login page

After logging in, users land in Fonio. If something goes wrong, they're sent back to the SSO login page with a message (see Troubleshooting below).

Domain management

Verify your company's email domains so your team can log in with just their work email. Without a verified domain, Fonio can't tell which emails belong to your company, and your team needs the login link.

Verify a domain

  1. Under Company Settings → Login Methods → Domains, add your domain, for example acme.com.
  2. Add the TXT record Fonio shows to your domain's DNS.
  3. Select Verify. DNS changes can take a while to show up.

DNS providers that add the domain

Some DNS providers add your domain to the record name automatically. If yours shows the domain next to the name field, enter only the part before it, for example _fonio-verification instead of _fonio-verification.acme.com.

What a verified domain does

  • Login with the work email: anyone who enters an email on the domain on the Fonio login page is sent straight to your identity provider. Emails on other domains get the password field.
  • One company per domain: a domain can be verified by only one company in Fonio.
  • Keep the TXT record in your DNS for as long as you use the domain with Fonio.

If your team uses several email domains, for example acme.com and acme.de, add and verify each of them.

User management

Just-in-time provisioning

You don't create SSO users in Fonio. When someone logs in with SSO for the first time, Fonio creates their user automatically, with:

  • the email address, first name and last name from your identity provider
  • the role from your role mapping, or the default role

Each new user takes a seat on your plan. When your user limit is reached, new users can't log in until you upgrade or free up a seat.

Existing users

Users who already have a Fonio account in your company are linked to their SSO account on their first SSO login. Fonio matches them by email address. They keep their password and can use either login.

Roles

Roles are updated on every SSO login. A role you change for an SSO user in Fonio is overwritten by the role mapping at their next login, so change roles in your identity provider.

Removing users

  • In your identity provider: remove the user from the app. They can then no longer log in with SSO.
  • In Fonio: also remove them under Users. A user who still has a Fonio password could otherwise keep logging in with it.

A member you remove only in Fonio, but who is still assigned in your identity provider, is added back at their next SSO login.

Passwords and two-factor authentication

Users created by SSO have no Fonio password. They don't see password or two-factor settings, and Forgot Password? points them to your company's SSO login instead. Use multi-factor authentication in your identity provider.

Mobile app and desktop softphone

The Fonio mobile app and the desktop softphone support password login only, so users created by SSO can't use them yet.

Changing your setup

Renew the signing certificate

When your identity provider renews its signing certificate, update the metadata in Fonio: open Edit configuration and save once for a metadata URL, or upload the new metadata file. Until then, SSO logins fail.

Switch identity providers

Set up the new SAML app in your new identity provider, then open Edit configuration in Fonio and upload the new metadata (or enter its URL). Under Custom attribute names, enter the names the new identity provider sends, for example email, firstName, lastName and role when you move from Entra ID to Google Workspace. Then save.

Fonio finds existing users by their email address, so make sure users keep the same email address in the new identity provider. Their roles follow the new role mapping at their next login.

Switch SSO off

Switch off SAML SSO under Login Methods to stop SSO logins. Your configuration and verified domains are kept. Users created by SSO have no password: while SSO is off, they can only log in with Forgot Password? on the login page. Fonio shows how many members this affects before you switch off.

Troubleshooting

MessageWhat to check
SSO isn't set up for this company.SAML SSO is switched on in Login Methods, and the login link or company ID is correct.
SSO login failed.Try again. If it keeps happening, check that the Entity ID and ACS URL in your identity provider match Fonio.
Your identity provider didn't send an email address.The Name ID or the email attribute is missing. Check the attribute names under Attributes in Fonio.
This email address already belongs to an account in another company.The person already has a Fonio account in another company. Contact support@fonio.ai.
Your company has reached its user limit.Upgrade your plan or free up a seat.
This isn't valid SAML metadata. (when saving)Download the metadata again from your identity provider. It must contain an HTTPS sign-in URL and a signing certificate.
We couldn't load the metadata from this URL. (when saving)Check the metadata URL is public and uses HTTPS, or upload the metadata file instead.

If a user isn't assigned to the app in your identity provider, the identity provider blocks the login before it reaches Fonio.