---
title: "Single sign-on for the apps you build"
description: "Let people sign in to the apps you build on Hercules with Okta, Microsoft Entra ID, Google Workspace, or any other SAML 2.0 or OpenID Connect provider."
---

# 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.

- **One connection per organization.** Connect a provider once, and every app in your organization can use it.
- **No new passwords.** Your users have none to remember, and you have none to reset.
- **Only SSO users.** Send every sign-in through your identity provider, which enforces your MFA policy.

## 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](https://hercules.app/docs/apps/users-auth/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](https://hercules.app/docs/apps/users-auth/single-sign-on#how-do-i-change-which-identity-provider-my-app-uses)

### 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](https://hercules.app/docs/apps/users-auth/single-sign-on#how-do-i-make-sso-the-only-way-to-sign-in)

### 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](https://hercules.app/docs/apps/users-auth/single-sign-on#how-do-i-check-that-sso-works-before-my-users-try-it)

### 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](https://hercules.app/docs/apps/users-auth/single-sign-on#what-happens-if-sso-stops-working)

## How do you set up single sign-on?

### 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](https://hercules.app/docs/platform/sso-saml)

### 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. 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.

## 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](https://hercules.app/pricing). 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](https://hercules.app/docs/apps/users-auth/upgrade-to-hercules-auth-2)

## Related features

- Use [Hercules Auth](/features/authentication) to offer Google or email code sign-in when SSO isn't the only way in.
- Use [Roles and permissions](/features/roles-and-permissions) to decide what each person can see and change once SSO signs them in.
- Use [Team SSO](/features/team-sso) to sign your teammates in to Hercules itself when your company manages logins centrally.

## 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](https://hercules.app/docs/apps/users-auth/single-sign-on) cover each step. Start building.

## Frequently asked questions

### 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.

```json
{
  "@context": "https://schema.org",
  "@type": "FAQPage",
  "mainEntity": [
    {
      "@type": "Question",
      "name": "Why do I need to verify my email domain?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "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."
      }
    },
    {
      "@type": "Question",
      "name": "What happens when my identity provider changes its certificate?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "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."
      }
    },
    {
      "@type": "Question",
      "name": "Do cloned apps keep SSO?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "Yes, when your organization's plan includes SSO. A cloned app keeps the same identity provider and the Only SSO users setting."
      }
    },
    {
      "@type": "Question",
      "name": "What happens to SSO when I transfer an app to another organization?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "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."
      }
    }
  ]
}
```
