Skip to content
Docs ·Single sign-on and SCIM provisioning

Configure

Single sign-on and SCIM provisioning

Connect your identity provider with OpenID Connect or SAML 2.0, map groups to roles and teams, and provision members with SCIM 2.0.

Single sign-on (OpenID Connect or SAML 2.0) and SCIM provisioning are part of the Enterprise plan and self-hosted deployments; they are not included in Essentials, Team, Advanced or the Team trial. On other plans the console shows Available on Enterprise with a contact-sales link. A single sign-on setup configured before a plan change keeps working; turning it on or changing it needs the Enterprise plan, and turning it off is always allowed. Owners and administrators with the security permission configure it under Settings → Security in the console.

Single sign-on

MergeHarbor connects to your identity provider with OpenID Connect (Okta, Microsoft Entra ID, Google Workspace, Ping, Keycloak, and others) or SAML 2.0.

  1. Create the application at your identity provider.
    • OpenID Connect: a web application with the callback URL shown on the settings page, and the openid, email, and profile scopes. Add groups if you map roles, and offline_access if you turn on session re-validation.
    • SAML: give the identity provider the service-provider metadata URL, or the entity ID and ACS URL shown on the page. Sign the assertion, send the email address as the NameID or an email attribute, and add a groups attribute if you map roles.
  2. Enter the provider details. For OpenID Connect, the issuer URL, client ID, and client secret (stored encrypted and never shown again). For SAML, the identity provider’s metadata URL (re-read daily) or its metadata XML.
  3. Set allowed domains. Only users with email addresses in these domains can sign in through your identity provider. Allowed domains are required for SAML.
  4. Verify your domains. Prove that you control each email domain with a DNS record (see Verified domains). Until a domain is verified, your identity provider can sign in existing members at that domain but cannot link other existing accounts, and accounts it creates have an unverified address.
  5. Optionally provision on first sign-in. Just-in-time provisioning creates members with the default role. Group → role and group → team mappings apply at every sign-in; the first matching mapping wins. Owners, and roles an administrator assigned by hand, are never changed. Preview role changes shows who would get which role before you save.
  6. Test the connection. A new tab signs you in at the identity provider and shows what it sent — claims or attributes, groups, and the role you would get — without creating anything.
  7. Choose break-glass owners. Up to five owners may still sign in without single sign-on, for example during an identity-provider outage. Every use is recorded in the audit log.
  8. Enforce single sign-on. Other sign-in methods are then refused for the organization. Multi-factor authentication is then your identity provider’s responsibility; see Two-factor authentication.
  9. Optionally re-validate sessions (OpenID Connect). MergeHarbor refreshes each session with your identity provider at the interval you choose, so a user disabled there is signed out and group changes apply without waiting for the next sign-in.

Users reach your identity provider from the sign-in page: Sign in with SSO, then their work email.

Verified domains

An identity provider can assert any email address, so MergeHarbor only believes yours about addresses in domains your organization has proved it controls. Under Settings → Security → Verified domains:

  1. Add the domain (for example acme.com). The page shows a DNS TXT record to publish:

    _mergeharbor-verification.acme.com   TXT   "mergeharbor-domain-verification=<token>"
  2. Publish the record at your DNS provider. Changes can take up to a day to propagate.

  3. Click Verify. MergeHarbor looks the record up and marks the domain verified. Verification is recorded once; you can remove the record afterwards.

What verification changes for sign-ins through your identity provider:

  • Existing accounts. An account whose address is in a verified domain is linked to the identity provider on its first sign-in. Outside verified domains, the identity provider can sign in people who are already members of your organization, but a sign-in for an existing account that is not a member is refused with account_exists_unverified_domain; verify the domain, or have the person join by accepting an invitation with their own sign-in first.
  • New accounts. Accounts the identity provider creates in a verified domain have a verified address. In an unverified domain the address stays unverified: the account can use your organization, and accept your organization’s own invitation at sign-in, but cannot accept other organizations’ invitations by email match until the address is proved.
  • Connection tests report whether the email’s domain is verified and whether the sign-in would be refused.

Verification belongs to one organization: two organizations that share a domain each verify it. Adding, verifying and removing domains is recorded in the audit log (domain.add, domain.verify, domain.remove).

Two-factor authentication and SSO

A sign-in through your identity provider does not ask for a MergeHarbor two-factor code when the account belongs only to your organization: the identity provider is responsible for the second factor. An account that is also a member of other organizations is still asked for its code, so your identity provider cannot stand in for the factor that protects those memberships.

Sign in from the identity provider’s app dashboard

To show MergeHarbor as a tile in Okta, Microsoft My Apps, or another identity provider’s dashboard, point the tile at MergeHarbor’s sign-in URL for your organization. MergeHarbor then starts a normal sign-in, so the tile works with both OpenID Connect and SAML:

https://<your console>/auth/login?org=<organization ID>

Find the organization ID under Settings → General.

  • Okta (OpenID Connect app): under General → Login, set Login initiated by to Either Okta or App, select Display application icon to users, choose Redirect to app to initiate login (OIDC Compliant), and set Initiate login URI to the URL above. Assign the app to the people or groups who should see it.
  • Microsoft Entra ID: in the enterprise application, set Properties → Home page URL (OpenID Connect) or Single sign-on → Sign on URL (SAML) to the URL above.
  • SAML apps in other identity providers: use a bookmark tile with the URL above.

Sign-ins that start with an unsolicited SAML response from the identity provider are refused, so a response can’t be replayed into a session. Use the URL above instead.

SCIM provisioning

Settings → Security → Provisioning lets an owner create a SCIM token for Okta, Microsoft Entra ID, or any SCIM 2.0 client. In your identity provider’s provisioning settings, use:

  • the SCIM base URL shown on the page (https://<your console>/scim/v2),
  • the token, which is shown only once, sent as Authorization: Bearer <token>,
  • userName (the email address) as the unique identifier.

In Okta, add SCIM 2.0 Test App (Header Auth) from the app catalog for provisioning; Okta’s OpenID Connect apps have no provisioning settings. Enable API integration with the base URL, and enter the API token as Bearer <token> (with Bearer and a space before the token; this app sends the field as the whole Authorization header). Then enable Create Users, Update User Attributes, and Deactivate Users, and assign the people or groups who use MergeHarbor. In Microsoft Entra ID, use Provisioning → Automatic on the MergeHarbor enterprise application, with the base URL as the tenant URL and the token as the secret token.

Push groups to map roles and teams with the same group mappings as single sign-on.

  • Creating a user adds them to the organization.
  • Deactivating or deleting a user removes them at once: their membership, their API keys in the organization, their sessions, and any pending invitations. The change is recorded in the audit log.
  • Group membership changes update roles and teams immediately.
  • The last owner of an organization cannot be deprovisioned.
  • Rotate a token from the same page. The old token stops working immediately, so paste the new one into your identity provider right away.

Each token belongs to one organization, so an identity provider can never read or change another organization’s members.