Set up single sign-on (SSO) so that users sign in to Vetera with their work account, for example a Microsoft Entra ID account. An administrator, usually your IT specialist, sets up single sign-on in Vetera and in your identity provider. The identity provider is the service that manages your organization's user accounts. Vetera uses the Security Assertion Markup Language (SAML) 2.0 standard for single sign-on.
To set up single sign-on, you need:
an administrator user account in Vetera
single sign-on turned on for your Vetera environment (ask your Customer Success Manager)
administrator access to your identity provider
a test user in your identity provider
Create a Key Pair for Single Sign-On
A key pair is the private key and certificate that Vetera uses to sign and encrypt single sign-on (SSO) messages. Create the key pair first.
To create a key pair:
Go to Settings > General > Users > Single sign-on to open the single sign-on settings.
Select + Key pair.
In Name, enter a name for the key pair that you will recognize later.
Select Generate new key.
Select Create self-signed certificate using private key.
Select Save.
The key pair is ready to use in an SSO configuration.
Create an SSO Configuration
An SSO configuration connects Vetera to one identity provider for single sign-on (SSO). Create the SSO configuration with the basic settings now, and complete it after you set up your identity provider.
To create an SSO configuration:
Go to Settings > General > Users > Single sign-on to open the single sign-on settings.
Select + SSO configuration.
In SSO provider name, enter the name of your identity provider, for example Microsoft Entra ID. Users see this name on the sign-in page.
In Key pair, select the key pair that you created.
Select the Enable functionality checkbox. Leave the other fields as they are for now.
Select Save.
The SSO configuration is saved. Users do not see it until you turn on single sign-on after testing.
Add Vetera to Your Identity Provider
To connect your identity provider to Vetera, add Vetera as a new Security Assertion Markup Language (SAML) application in the identity provider. Vetera creates the information, called metadata, that the identity provider needs.
To add Vetera to your identity provider:
Go to Settings > General > Users > Single sign-on to open the single sign-on settings.
Select Metadata next to the SSO configuration. The Vetera metadata opens in a new browser tab.
In your identity provider, create a new SAML application.
Add the Vetera metadata to the SAML application. Paste the address of the metadata page, or save the page as an XML file and upload the file.
Set up the SAML application to send the attributes in the table below.
Copy the address of the identity provider metadata. If your identity provider has no address, download its metadata as an XML file.
Your identity provider is ready for Vetera. For the exact steps, see the documentation of your identity provider.
This table shows the attributes that your identity provider sends to Vetera when a user signs in:
Attribute | Needed | What Vetera uses it for |
Email address | Required | To identify the user. Use the email address that is least likely to change. |
Given name | Recommended | To create user accounts automatically. |
Surname | Recommended | To create user accounts automatically. |
Role or group | Optional | To give users a permission group from their role in the identity provider. |
Send the given name and the surname together. Without both, Vetera cannot create user accounts automatically.
Complete the SSO Configuration
After you set up your identity provider, complete the SSO configuration for single sign-on (SSO) in Vetera.
To complete the SSO configuration:
Go to Settings > General > Users > Single sign-on to open the single sign-on settings.
Select the pen button next to the SSO configuration.
In User email attribute, enter the name of the email address attribute that your identity provider sends. The default name is email.
In Source of identity provider metadata, select From remote URL, and paste the address in Identity provider metadata URL. If you have an XML file, select Static, and paste the content of the file in Identity provider metadata.
In Given name attribute and Surname attribute, enter the attribute names that your identity provider sends. Vetera uses them to create user accounts automatically.
If your identity provider does not support single logout, clear the Enable single logout (SLO) checkbox.
Select Save.
The SSO configuration is ready to test.
Create user if missing and Enable single logout (SLO) are selected by default. With Create user if missing, Vetera creates a user account the first time a new user signs in. With single logout, users who sign out of Vetera are also signed out of the identity provider.
Permission Group for New Single Sign-On Users
When single sign-on (SSO) creates a user account, Vetera gives the user the permission group in Permission group of new users. Leave Permission group of new users empty unless you have a permission group with minimal permissions that is safe for every new user.
When Permission group of new users is empty, Vetera creates the user account as archived. The user can use Vetera after an administrator gives the user account a permission group.
To find the archived user account, go to Settings > General > Users and remove the Status is Active filter from the user list. To give the user account a permission group, see Create and Manage User Accounts.
Test and Turn On Single Sign-On
Test single sign-on (SSO) with your test user before users can see it on the Vetera sign-in page.
To test the SSO configuration:
Go to Settings > General > Users > Single sign-on to open the single sign-on settings.
Select the pen button next to the SSO configuration.
Under SSO testing endpoint at the bottom of the SSO configuration, select the endpoint link. The sign-in page of your identity provider opens.
Sign in with the test user.
If the SSO configuration is correct, Vetera opens and you are signed in.
If the SSO configuration has a problem, Vetera shows an error message. For example, if an attribute name does not match, the error message shows the names that Vetera expected and the names that it received. Correct the SSO configuration, select Save, and test again. A change takes effect only after you save.
To turn on single sign-on for users:
Select the pen button next to the SSO configuration.
Select the Display as sign-on option checkbox.
Select Save.
Users see a button, for example Sign on with Microsoft Entra ID, on the Vetera sign-in page. Users can also still sign in with their email address and password until you turn off password login.
Assign Permission Groups from the Identity Provider
Single sign-on (SSO) can give users a Vetera permission group from their role in your identity provider. This is optional.
To assign permission groups from the identity provider:
Set up your identity provider to send the role of the user as an attribute.
In Vetera, go to Settings > General > Users > Single sign-on to open the single sign-on settings.
Select the pen button next to the SSO configuration.
In Group attribute, enter the name of the role attribute.
If the role names differ from the Vetera permission group names, enter the matching names in Group mapping, for example {"Veterinarian": "Vets"}.
To update the permission group every time the user signs in, select Sync group on every login.
Select Save.
Vetera gives users a permission group from their role.
If the role matches no Vetera permission group, Vetera uses Permission group of new users. If Sync group on every login is cleared, Vetera sets the permission group only when it creates the user account.
Turn Off Password Login
To make users sign in to Vetera only with single sign-on (SSO), turn off password login. Turn off password login after single sign-on works for your users.
To turn off password login:
Go to Settings > General > Users > Password settings to open the password settings.
Select the pen button next to Password settings.
Select the Disable signing in with Vetera passwords checkbox.
Select Save.
Users can sign in to Vetera only with single sign-on.
Tell Your Users How to Sign In with Single Sign-On
After you turn on single sign-on (SSO), tell your users how to sign in to Vetera. Users see the sign-in page that matches your setup, so only you know what they need to do.
Tell your users:
which button to select on the Vetera sign-in page, for example Sign on with Microsoft Entra ID
whether they can still sign in with their email address and password
who to contact if they cannot sign in
