Releases: univeros/polaris
Releases · univeros/polaris
Release list
v2.0.0
univeros/polaris 2.0 is a new major built on Polaris for PHP: polaris/core carries the
identity, MFA/OTP, session, organization and RBAC services, the 52 endpoints and the
schema, all contract-frozen against 1.0 (184 recorded request/response sequences replay
through this module's Relay pipeline in CI); this package is the Univeros module around
it. The HTTP contract of 1.0 is unchanged (docs/auth/api-reference.md in polaris-core),
with one documented exception: a request body field named like a request attribute no
longer overrides the attribute.
Changed
- The module builds Polaris from the environment (
APP_KEY,AUTH_JWT_*,AUTH_ISSUER,
AUTH_AUDIENCE) on the application's database settings (DB_*, orPOLARIS_DSNwithout
an ORM) throughpolaris/pdo; the framework's cache, logger and event dispatcher are used
when bound. - Routes:
PolarisMiddleware, contributed throughMiddlewareProviderInterfaceahead of the
framework's exception handler, serves every Polaris path; the routes are no longer in the
FastRoute table (bin/altair polaris:manifestlists them).POLARIS_PATH_PREFIXmounts
them under a prefix. - Migrations: one Cycle migration installs the schema and seeds the permission catalog through
Polaris\Pdo\SchemaInstaller; the 18 migrations of 1.x are gone.bin/altair db:migrate
on a fresh database installs Polaris. - The framework's
TokenAuthenticationMiddlewarekeeps working with Polaris access tokens
throughTokenFactoryBridge; the application scopes it to its protected paths with
$container->make(TokenAuthenticationMiddleware::class, ['rules' => [...]]). - Console:
polaris:schema:export,polaris:schema:create,polaris:schema:drop,
polaris:schema:diff,polaris:manifest,polaris:doctorfrompolaris/cli, added by the
application's ownbin/altairthroughUniveros\Polaris\Console\Commands::all(). - The default token issuer without
AUTH_ISSUERispolaris(1.x minteduniveros/polaris).
Removed
- Every class under
Univeros\Polaris\except the module glue; use thePolaris\namespaces
ofpolaris/core. Cycle entities and repositories: Polaris no longer maps entities into the
application's ORM schema. - The AES-CBC encrypter of 1.x. There is no compatibility path (see UPGRADE).