Secure Authentication & Authorization for Modern Applications
A flexible IAM platform designed for internal systems — with multi-tenant support, fine-grained RBAC, and OAuth 2.1 built in.
Alice Chen
alice@corp.com
Bob Smith
bob@corp.com
Carol White
carol@corp.com
Active Permissions
Everything you need in one platform
Purpose-built for internal systems that require reliable, scalable identity management.
Simple flow, powerful control
Three phases that take a user from identity to authorized action.
- Email & Password
- OAuth Providers
- Magic Links
- 2FA / OTP
- Custom role definitions
- Permission inheritance
- Team-level scoping
- Dynamic access control
- Per-request validation
- DENY overrides ALLOW
- Cached permission sets
- API key enforcement
Integrate in minutes, not days
Type-safe server actions, a clean client SDK, and a permission resolver that gives you the full picture — allowed, denied, and effective permissions in one call.
- ZSA server actions with full TypeScript type safety
- Clean Architecture — use cases, controllers, services
- Permission caching with 60 s TTL and automatic invalidation
- Auto-generated OpenAPI spec via Better Auth plugin
import { authClient } from "@/modules/client/auth/auth-client";
// Authenticate
const { data: session } = await authClient.signIn.email({
email: "user@example.com",
password: "••••••••",
});
// Resolve effective permissions
const result = await resolvePermissionsAction({
userId: session.user.id,
organizationId: "org_01HV...",
});
// {
// allow: ["patients:read", "reports:create"],
// deny: ["patients:delete"],
// final: ["patients:read", "reports:create"]
// }
// Enforce in a server action or API route
await requirePermission("patients:read", organizationId);Built for real-world systems
From small internal tools to large enterprise platforms.
Internal Admin Dashboards
Gate every admin route and server action behind role checks. Superadmin, admin, and guest roles configured out of the box.
Enterprise Applications
Manage hundreds of users across isolated tenants with per-org roles, teams, and permission inheritance.
Multi-Tenant Systems
Each organization gets its own role hierarchy and permission set. Members are scoped to their tenant namespace.
Platform-Level Access Control
Issue OAuth 2.1 tokens for service-to-service communication. Enforce scopes and audiences consistently.
Secure by design
Every layer of the platform is designed with security and predictability in mind.
Token Rotation
Automatic refresh token rotation with configurable TTL and instant revocation support.
Role Enforcement
Server-side permission checks on every protected action and route via ZSA procedures.
Persistent Sessions
Database-backed sessions with 60 s cookie caching for performance without sacrificing accuracy.
Audit Support
Track authentication events and permission changes with database hooks and middleware.
Scalable Architecture
Clean Architecture with DI container. Swap infrastructure adapters without touching business logic.
Multi-Factor Auth
Email OTP 2FA and magic link authentication available for sensitive admin operations.
Start integrating IAM into your applications
Your authentication and authorization infrastructure, ready to use.