Single sign-on for the apps you build

Single sign-on lets people sign in to an app you built on Hercules with the work login they already have, through any SAML 2.0 or OpenID Connect (OIDC) identity provider. Your identity provider confirms who each person is.

What can you do with single sign-on?

Use the provider your company already runs

Connect Okta, Microsoft Entra ID or another SAML 2.0 or OIDC provider under Organization → SSO. The provider signs in people from the email domains you verify.

Single sign-on
Organization → SSO screen ("Configure SAML or OIDC identity providers for your organization") with Add Provider; from the Team SSO docs, but it is the same screen apps use
Identity provider picker for an app's single sign-on

Pick a provider for each app

With more than one identity provider connected, each app picks the one it uses. You can switch an app to another provider later in Auth Portal.

Change provider

Make SSO the only way in

Choose Only SSO users under Sign-in Rules, and Hercules hides your app's other sign-in methods. People already signed in stay signed in until their session ends.

SSO only

Test before your users try

Test sign-in under Organization → SSO runs your provider's real sign-in and shows who it signed in or what went wrong. A test signs nobody in, and it works once the provider's domains are verified.

Test sign-in

Keep a fallback if the provider stops working

If your app can't use the provider, such as after a domain's verification lapses, Hercules removes the SSO button and other sign-in methods keep working. An app set to Only SSO users blocks every sign-in until you fix the provider.

When SSO stops working

How do you set up single sign-on?

  1. 1. Connect the provider

    Under Organization → SSO, choose Connect identity provider and follow the steps Hercules shows. Add a DNS record at your domain provider for each email domain, and Hercules turns sign-in on once every domain is verified.

    Connect a provider
  2. 2. Turn it on in the app

    In Users & Access, open Auth Portal, switch on Single sign-on (SSO) and save. A Continue with SSO button appears on your sign-in page within about a minute.

  3. 3. Sign in through the app

    Open your app's sign-in page and click Continue with SSO. Hercules sends you to your identity provider, brings you back signed in, and creates your user the first time you sign in.

What could a business do with it?

In this hypothetical example, a building-supply distributor sets its order-tracking app to Only SSO users, so staff sign in with the work logins IT already manages. When IT turns off a leaver's work login, that person can't sign in again once their session ends, and nobody has an app password to revoke.

Related features

Frequently asked questions

What should you know before you start?
  • Turning SSO on, changing providers and choosing Only SSO users need a paid plan, shown on the pricing page. If your plan changes, both settings stay in force, and you can still turn either off.
  • Only one organization on Hercules can verify a given email domain.
  • Apps created before Hercules Auth 2.0 need a one-time upgrade first. Upgrade guide
Why do I need to verify my email domain?

Domain verification proves your company owns the domain, so only your provider can sign in people with addresses there. Hercules checks the DNS record daily, and if it goes missing, sign-in for that domain keeps working for 7 days while you restore it.

What happens when my identity provider changes its certificate?

A certificate change needs no action if you connected with a metadata URL, because Hercules downloads the provider's metadata daily and retrieves the new signing certificate. With an uploaded metadata file, choose Replace metadata after the provider rotates its certificate.

Do cloned apps keep SSO?

Yes, when your organization's plan includes SSO. A cloned app keeps the same identity provider and the Only SSO users setting.

What happens to SSO when I transfer an app to another organization?

A transferred app loses SSO, because the identity provider belongs to your organization. An app set to Only SSO users goes back to Allow everyone, so set up SSO again in the new organization.

How do you get started?

Turn on SSO next to your current sign-in methods, and switch to Only SSO users once your team has used it. The single sign-on docs cover each step. Start building.