Skip to content

Configure SAML Single Sign-On

Use this page to let users of a domain sign in with a SAML 2.0 identity provider such as Microsoft Entra ID, ADFS, or Google Workspace. Each domain defines its own identity providers; one domain can use more than one.

Before You Begin

  • The application administrator must enable SAML for domains. See Login Services → SAML. The SAML Identity Providers tab is hidden in Edit Domain while SAML is disabled.
  • You need domain_write to add or change identity providers in Edit Domain.
  • You need administrator access to the identity provider to register Emakin as an application.
  • Decide how users will be created in Emakin:

Without one of these, only users that already exist in Emakin can sign in. See Existing Users.

Add the Identity Provider in Emakin

  1. Open Edit Domain and go to Integrations → SAML Identity Providers.
  2. Select Add Identity Provider and enter a Name, for example entra. The name is shown on the login button and is part of the Emakin addresses for this provider. Changing it later breaks existing user bindings.
  3. Select Save. Emakin creates the provider's signing certificate and its addresses.
  4. Open the provider again and copy the values in the Service Provider section:

    Value Use at the identity provider
    Metadata URL Metadata address or Upload metadata file
    Entity ID Identifier
    Reply (ACS) URL Reply URL or assertion consumer service URL
    Sign on URL Optional. Starts sign-in from the identity provider portal, for example Microsoft My Apps

The download the metadata file link returns the same metadata as a file for portals that accept an upload.

Register Emakin at the Identity Provider

Microsoft Entra ID

  1. In the Microsoft Entra admin center, create an enterprise application and select SAML as the single sign-on method.
  2. Select Upload metadata file and upload the metadata file from Emakin, or enter the Entity ID and Reply (ACS) URL manually.
  3. Optionally enter the Sign on URL. Leave Relay State and Logout URL empty.
  4. Copy the App Federation Metadata Url from the SAML Certificates section.
  5. Assign the users or groups that may sign in.

ADFS

  1. Add a relying party trust and import the Emakin metadata URL or file.
  2. Add claim rules that send at least the user identifier, e-mail address, and name attributes.
  3. Use the ADFS federation metadata address, for example https://adfs.example.com/FederationMetadata/2007-06/FederationMetadata.xml, in Emakin.

Google Workspace

  1. In the Google Admin console, add a custom SAML app.
  2. Enter the Entity ID and Reply (ACS) URL from Emakin.
  3. Download the identity provider metadata file. Google does not publish a metadata URL, so paste the metadata XML in Emakin.

Complete the Identity Provider Settings in Emakin

Open the provider in Integrations → SAML Identity Providers and fill in the remaining fields.

Metadata

Enter the HTTPS metadata URL of the identity provider, or paste the metadata XML when no URL is available. With a URL, Emakin follows signing certificate changes automatically and keeps using the last valid metadata if the address is temporarily unreachable. With pasted XML, update the metadata yourself when the identity provider's certificate changes.

User Id Attribute

The SAML attribute that identifies a user, for example objectidentifier for Entra ID. Leave it empty to use the NameID. Choose a value that never changes. When users are provisioned with SCIM or directory sync, the attribute must carry the same value as the SCIM userName or the directory sync Logon Attribute.

Warning

Changing the user id attribute after users have signed in breaks their existing bindings. Users then appear as new users or cannot sign in.

Enabled by default. A user who already exists in Emakin is bound to the identity provider on first sign-in or provisioning when the e-mail address sent by the identity provider matches that user. A user is bound only when exactly one Emakin user has the address. The built-in administrator is never bound. See Existing Users.

Turn this option off if users can change their own e-mail address at the identity provider.

Sign-out URL

Optional. Users who signed in through this provider are redirected here when they log off from Emakin, which also ends their identity provider session. Examples:

  • Entra ID: https://login.microsoftonline.com/common/wsfederation?wa=wsignout1.0
  • ADFS: https://adfs.example.com/adfs/ls/?wa=wsignout1.0

Note

Do not use the Entra ID Logout URL that ends with /saml2. That address expects a SAML logout request, and a plain redirect to it shows an error.

Groups

Select Create groups from the group claim and update memberships at login to keep group memberships in step with the identity provider. On each sign-in, Emakin creates a group for every group in the claim and updates the user's memberships in those groups. The identity provider must send a groups claim.

  • Groups are created with the names sent in the claim. Entra ID sends group object IDs unless it is configured to emit group names.
  • Groups created this way are not deleted when they disappear from the claim or when the provider is removed. Delete unneeded groups manually in Edit Groups.
  • Groups that already exist in Emakin are not changed. Group sync only manages the groups it creates.
  • When a user belongs to too many groups, Entra ID sends a link instead of the group list. Memberships are then not updated for that sign-in.

Set the Login Options

The provider appears with the same name in Login and Security → Login Methods after it is added. Configure it there like any other login method:

  • move it up or down to set its position on the login page
  • set Enabled? and Two-factor authentication method
  • expand the row to set Auto Register, Auto Register To Group, and Update User Information

See Login Services for the meaning of these options.

Existing Users

Emakin finds a SAML user by the value of the User Id Attribute, not by user name. A user who already exists in Emakin is matched in one of these ways:

  • Link Existing Users binds the user by e-mail address on first sign-in or provisioning.
  • The user connects the provider from User Profile → Login Methods after signing in another way.
  • SCIM provisioning or directory sync binds or creates the user before the first sign-in.

If none of these applies and Auto Register is off, the sign-in fails with "No user registered with this credentials".

Verify the Configuration

  1. In a private browser window, open the Emakin login page and select the provider's login button.
  2. Sign in at the identity provider with an assigned test user.
  3. Confirm that Emakin opens as the expected user.
  4. If a Sign-out URL is configured, log off and confirm that the identity provider session also ends.

Most identity providers also offer a test sign-in that starts from their portal. It uses the Sign on URL.

Troubleshooting

Symptom Likely cause Resolution
The provider is not on the login page SAML is disabled for the application, or the login method is disabled Check Login Services → SAML and the provider's row in Login Methods
"No user registered with this credentials" The user does not exist, cannot be matched, and Auto Register is off See Existing Users, or provision the user
A duplicate user is created on first sign-in Link Existing Users is off, the e-mail addresses differ, or more than one user has the address Correct the e-mail address, then connect the account from the user's profile
The sign-in is rejected after the identity provider's certificate changed Metadata is pasted as XML Paste the new metadata, or use the metadata URL
The identity provider shows an error on log off The Sign-out URL is a SAML logout endpoint Use the WS-Federation sign-out address shown above