# Single Sign-On (SSO)

> Set up OIDC single sign-on for CurrencyCore: plan requirements, redirect URLs, domain verification, Require SSO, IdP notes, and common errors.

Canonical: https://currency-core.com/docs/sso/
Updated: 2026-11-10
Published: 2026-06-06

---
CurrencyCore supports **enterprise Single Sign-On over OIDC**. Your team signs in
through your company identity provider instead of a password or personal Google
account. SSO is included on **Business**, **Enterprise**, and custom plans.

Each provider is bound to **one organization** and **one email domain**. The
first time someone from that domain signs in, they are routed to your IdP. On
success they join the organization as a **member** and use its limits, usage, and
billing. Supported IdPs include any OIDC provider: **Okta, Microsoft
Entra ID, Google Workspace, Auth0, and OneLogin**.

## Before you start

You need a Business or higher plan (or an override arranged with support), owner
or admin access to the organization, admin access to your IdP, and a work email
domain where you can add a DNS TXT record. An existing provider keeps working if
the organization later drops below Business; you just cannot add or change
providers until the plan is restored.

## Set up a provider

In the dashboard, open **Single Sign-On** and choose **Add a provider**:

1. **Email domain**, for example `acme.com`. Use the domain your IdP puts in the
   email claim, not a subdomain unless users sign in with that exact subdomain.
2. **Issuer URL**, the OIDC issuer published by your IdP, for example
   `https://acme.okta.com`. Do not append `/.well-known/openid-configuration`;
   CurrencyCore discovers the endpoints from the issuer.
3. **Client ID** and **client secret** from the OIDC application you create in
   your IdP.

### Callback URL

The Provider ID is the unique identifier for this SSO connection. The dashboard
shows the exact callback URL after you enter the domain. Copy that value into
the IdP's **redirect URI** field:

```
https://api.currency-core.com/api/auth/sso/callback/<providerId>
```

The URL is case-sensitive; do not add a trailing slash.

### Verify the domain

A new provider is inactive until the domain is verified. The page shows a DNS
TXT record to add at your DNS provider. Once the record is live, click **Verify**.
Verification proves you control the domain and makes automatic joining and
account linking safe.

## Signing in

On the login page, enter your work email and choose **Sign in with Single
Sign-On**. CurrencyCore matches the email domain to the provider and redirects to
your IdP. An existing account with the same email is linked after the domain is
verified.

## Require SSO

Turn on **Require SSO** to force everyone on a verified SSO domain through the
IdP. Password and Google sign-in are blocked for those addresses.

**Organization owners are exempt**, a break-glass path so a broken IdP cannot
lock the organization out. Enforcement requires a verified provider domain,
Require SSO enabled, and current membership in the enforcing organization. It is
not global by email domain: a user who shares the domain but is not a member is
not blocked.

## Troubleshooting

| Symptom | Likely cause | Fix |
|---|---|---|
| `redirect_uri_mismatch` at the IdP | The callback URL does not exactly match the dashboard value. | Copy it again, check the Provider ID, keep HTTPS, and remove any trailing slash. |
| `invalid_client` | The client ID or secret is wrong, or the app is disabled. | Re-enter both values from the IdP application. |
| Issuer or discovery error | The issuer URL is wrong or not publicly reachable. | Use the exact issuer without the discovery path, and check reachability. |
| Login succeeds but returns an error | The email claim domain does not match the registered domain. | Confirm the IdP releases an email claim on the same domain. |
| Provider stays inactive | The DNS TXT record is missing or has not propagated. | Add the exact value, wait, then verify again. |
| Owner can still use a password | Owners are exempt from Require SSO by design. | Accept the break-glass path or use a separate owner account. |
| Existing provider stopped routing | The plan dropped below Business. | Restore the plan; provider rows are retained. |

## IdP notes

- **Okta:** create an OIDC web application, use the callback as the sign-in
  redirect URI, and copy the issuer from the authorization server.
- **Microsoft Entra ID:** register a web application, add the callback as a
  redirect URI, and use the tenant-specific issuer to restrict sign-in.
- **Google Workspace:** create a Web application OAuth client, add the callback
  as an authorized redirect URI, and use the Google issuer.
- **Auth0 and OneLogin:** create a regular web application and copy its issuer
  and client credentials.
- **SAML:** version 1 supports OIDC only.

## Notes and limits

- Provider setup is gated to Business and above. Existing providers survive a
  downgrade but stop accepting configuration changes.
- SSO members consume a team seat like any other member.

## Related products

- [Pricing](/pricing/)
- [Currency API](/currency-api/)
- [MCP server](/mcp-server/)
- [Currency converter](/tools/currency-converter/)
- [Getting started](/docs/getting-started/)
