Skip to Content
GuidesAuthenticationEnterprise SSO

Enterprise SSO

Enterprise SSO connects an organization to its corporate identity provider. Auris acts as a native SAML service provider or OIDC client. This guide describes direct SSO sign-in to the Auris Console; connections belong to an organization within a tenant.

Before you start

You need permission to manage SSO connections, an eligible plan, an organization, and administrator access to the external IdP. Use the Auris API origin configured for your environment. The example https://api.yourdomain.com below is not your application’s callback or the Console URL.

SAML 2.0 setup

  1. Open the organization in Console and select its SSO connections.

  2. Add a SAML connection. Supply the IdP entity ID, SSO URL, and signing certificate. An optional metadata URL does not replace these required fields in the current form.

  3. Save the connection to obtain its connection ID. Copy the SP values shown for that saved connection into the IdP application.

  4. Release the email, given-name, and family-name attributes. Auris recognizes standard attribute names such as email, mail, givenName, and surname, and their common claim URIs.

  5. Activate the connection, verify the organization’s email domain, and test with a dedicated account. Activation alone does not prove that an IdP login succeeds.

SettingValue
Entity ID / metadata URLhttps://api.yourdomain.com/api/auth/sso/saml/{connectionId}/metadata
ACS / reply URLhttps://api.yourdomain.com/api/auth/sso/acs
Name ID formaturn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress

The ACS endpoint is shared; the entity ID and metadata URL include the connection ID. Auris validates the IdP signature, audience, timing, request correlation, and replay protections. Keep the signing certificate current. A login test must exercise your configured IdP, not just retrieve metadata.

OIDC setup

  1. Register Auris as an OIDC client at the IdP using the Authorization Code flow.

  2. Register the exact redirect URI https://api.yourdomain.com/api/auth/sso/callback. It has no connection ID suffix.

  3. In the Auris connection, enter issuer, client ID, client secret, and scopes (normally openid email profile). The native flow also requires resolvable authorization and token endpoints. For a custom issuer, configure its endpoint values through the connection API if the form cannot express them.

  4. Save and activate the connection. Complete a test login and confirm arrival at the configured Auris Console, not an application callback.

OIDC endpoints must use HTTPS; endpoints fetched by the server must be publicly reachable. Do not assume that entering a discovery URL alone fills every connection field. The provider must return a verifiable ID token with the expected issuer, audience, and nonce.

Return destination and application integration

After a successful native SAML or OIDC callback, the browser is redirected to the configured Console origin at /sso-callback?code=.... The Console redeems that short-lived code with POST /api/auth/sso/exchange, establishes its authenticated state, and navigates to its home page (/). This direct start does not return an authorization code to a registered application’s redirect URI.

For a registered application, start Authorization Code + PKCE from the application and follow hosted login. The direct Console flow documented here does not prove an SSO round trip for that application. Before relying on it, verify the complete application journey, including its registered redirect URI, state, PKCE code exchange, and session.

Verify the email domain

Add the organization’s email domain in its SSO settings. Publish the exact TXT record supplied by Auris, then run verification:

Type: TXT Name: _auris-verify.example.com Value: auris-verify=<generated-token>

Use the generated token, not the sample value. A verification request expires after seven days. Detection requires a verified domain and an active connection; it is a routing step, not an authorization decision.

Detect and start SSO

POST /api/auth/sso/detect accepts { "email": "[email protected]" }. The response uses hasSso, not ssoEnabled. When present, loginUrl is the connection alias, not a complete URL:

{ "hasSso": true, "connectionId": "connection-id", "loginUrl": "connection-alias", "organizationName": "Example organization" }

The following example starts the Console-oriented direct SSO route after detection. It is not a replacement for an application’s Authorization Code + PKCE flow.

async function startConsoleSso(email, apiOrigin, tenantSlug) { const response = await fetch(`${apiOrigin}/api/auth/sso/detect`, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ email }), }) if (!response.ok) throw new Error('SSO detection failed') const result = await response.json() if (result.hasSso && result.loginUrl) { const alias = encodeURIComponent(result.loginUrl) const url = new URL(`/api/auth/sso/login/${alias}`, apiOrigin) url.searchParams.set('realm', tenantSlug) window.location.assign(url.toString()) } return result.hasSso === true }

Use your configured API origin and tenant slug for the start request. If hasSso is false, offer an enabled passwordless method through hosted login. A negative detection result must never be treated as permission to bypass your access policy.

Provisioning and permissions

A successful federated login can resolve or create a native Auris profile. Existing disabled accounts remain blocked. A profile does not grant Console membership or application access automatically: assign membership and roles explicitly.

The connection form stores automatic-provisioning and default-role settings, but these values are not a guarantee that runtime login blocks new profiles or maps IdP groups to roles. Do not use those settings as an access-control boundary. For controlled provisioning, combine your IdP assignment policy with explicit Auris permissions and the appropriate provisioning workflow.

Before deactivating a connection, verify that affected users have another enabled sign-in method. A password value submitted during administrative creation is not an alternative login method.

Connection API

Use an authenticated request with the intended x-tenant context. Read operations require view:sso_connections; changes require manage:sso_connections. Plan restrictions also apply to creating, updating, and activating connections.

OperationRoute
List / createGET / POST /api/organizations/{orgId}/sso/connections
Read / update / deleteGET / PATCH / DELETE /api/organizations/{orgId}/sso/connections/{connectionId}
ActivatePOST /api/organizations/{orgId}/sso/connections/{connectionId}/activate
DeactivatePOST /api/organizations/{orgId}/sso/connections/{connectionId}/deactivate
Add domainPOST /api/organizations/{orgId}/sso/domains
Check DNSPOST /api/organizations/{orgId}/sso/domains/{domainId}/check

Create requests use type: "SAML" or type: "OIDC", a name, and the protocol-specific config. Use the activation endpoints to change active status; PATCH updates connection configuration.