Skip to content

Auth

Auth is the centralized authentication and authorization hub for the Samna ecosystem. It handles user management, OAuth flows, claims based access control, and token issuance for all Samna services and applications.

The service manages the full identity lifecycle from user registration and invitation through to session management and fine grained permission control across organizations and locations.

How It Works

Every service in the Samna ecosystem authenticates through Auth. Users sign in through OAuth providers or internal credentials, receive JWT tokens, and those tokens are validated by downstream services using the published JWKS endpoint. Access control is managed through a hierarchical claims system scoped to organizations and locations.

ConceptWhat it does
UserA person or system identity in the platform
OrganizationA company or tenant, the top of the hierarchy
LocationA physical site within an organization
ClaimA permission with an access level, the core of authorization
AppA registered application with OAuth configuration
ProviderAn OAuth or OIDC identity provider
ClientService to service credentials
ActivationInvitation and password reset codes
ModuleA functional module within an organization
AssetMedia files attached to organizations and locations
AuditOperation log for all changes

Auth Flow

User → Auth (OAuth/login) → JWT token
Services → Auth Middleware → fetches JWKS from Auth → validates locally