Polaris · identity module for Univeros

Auth your users can trust, and your agents can operate.

Polaris is the official identity module for Univeros, the agent-native PHP framework. One module registration adds email-verified login, JWT with rotating refresh tokens, multi-factor auth with recovery codes, and multi-tenant RBAC. Specified end to end, so humans can audit it and agents can build on it.

$ composer require univeros/polaris

One registration contributes

  • routes
  • entities
  • migrations
  • middleware
  • events
01

Drop-in

Register one class in config/modules.php and the host gains the full identity stack. Routes, entities, migrations, and middleware arrive wired and ready.

02

Security-critical by design

A written threat model behind every decision: hashing, token lifetimes, enumeration resistance, rate limits. Held to a minimum of 80% test coverage.

03

Multi-tenant

Identity is global, authority is per organization. Users carry roles scoped to each org they belong to, enforced consistently by middleware.

04

Agent-operable

Specified end to end and observable through PSR-14 events for every auth action, so humans can audit the module and agents can build on it.

Batteries included · production-grade

A complete identity stack from one module registration.

One line in config/modules.php contributes routes, entities, migrations, and middleware to the host. No further wiring.

Get started

Start with the Polaris documentation.

Everything you need to understand and adopt Polaris, in one place.