Architecture
Auris connects your applications to user authentication and authorization. This overview explains the boundaries that matter when integrating an application or configuring enterprise access.
Platform overview
Your application uses the hosted login flow or an SDK. The Auris API manages authentication, user records, sessions, applications, and permissions. PostgreSQL stores tenant configuration and authorization data; external identity providers authenticate federated users.
Authentication and identity
-
Native token issuer: Auris issues its own access and refresh tokens. Your API validates an Auris token rather than accepting a raw token from an external identity provider.
-
Passwordless users: administrative user creation stores the profile in Auris. A supplied password is ignored; password login is unsupported. Users sign in with an enabled passwordless method, such as a magic link or WebAuthn, or a configured identity provider.
-
Enterprise federation: Auris has native OIDC and SAML service-provider flows. An organization’s active connection determines the external IdP and its configuration. Availability still depends on the plan, connection, certificates, endpoints, and tenant configuration.
-
Sessions: Auris manages refresh-token families, rotation, and revocation. Federated sign-out depends on the external provider’s supported logout configuration.
Tenants and organizations
The tenant is the isolation boundary for users, applications, security settings, and permissions. The opaque tenant_id in a verified token identifies that tenant. A tenant slug is a routing value; it must not replace the tenant ID in authorization decisions.
Organizations group members and enterprise connections within a tenant. Creating an organization does not create a separate tenant. An administrative user record alone does not grant Console membership or application permissions.
Where an endpoint accepts x-tenant, send the intended tenant context together with a valid token. A client-supplied header never grants access on its own. APIs must also validate the token and the operation’s permissions.
Authorization
-
Authentication: verifies the caller and token context.
-
RBAC: assigns roles and permissions such as
view:usersormanage:users. User overrides can useALLOW,DENY, orINHERIT; evaluate effective permissions on the server. -
Object access: the FGA layer models relationships between subjects and resources, for example a viewer of a particular document. Use it when role checks alone are insufficient, and verify that the engine is enabled for your environment.
Applications and login flow
- Register the application and its exact redirect URIs.
- Start Authorization Code + PKCE through hosted login.
- Auris authenticates the user with an enabled method, then redirects to the registered URI with an authorization code.
- The client exchanges that code at
POST /api/auth/token. - Send the access token to your API; refresh through the token endpoint when needed.
Machine-to-machine applications use the Client Credentials grant. Client secrets belong on a trusted server and must not be embedded in a browser or mobile application.
Tokens and verification
Signing depends on the deployment. The native issuer defaults to HS256; RS256 requires configured key material. JWKS is useful for the RS256 configuration, not for distributing an HS256 secret. Never expose a symmetric signing secret in browser code.
Use the configured Auris API origin for discovery and public keys:
GET /api/.well-known/openid-configuration
GET /api/.well-known/jwks.jsonUse the issuer and signing algorithm for your actual environment, including a configured custom domain. Do not infer a production configuration from an example URL. See the token-verification guide for an executable server-side example.
Security and lifecycle
Hosted login applies the security controls configured for the tenant, such as rate limits, CAPTCHA, risk checks, and MFA. Enabling or configuring a feature is distinct from testing the corresponding user journey. Check your enabled methods before onboarding users or deactivating an IdP.
Disabling a native user or deleting their account revokes their Auris sessions. Soft deletion and restoration are separate from permanent deletion. Keep role assignment, Console membership, and application access explicit when provisioning or restoring an account.
Data model
- Tenant: Tenant boundary and configuration.
- Organization: Members and enterprise connections inside a tenant.
- User: Native profile, enabled state, and authentication links.
- Application: Registered client and redirect URIs.
- Role: Named permissions and user assignments.