ausus/auth-bridge

AUSUS — Laravel-bridge Authorization plugin (RFC-014). Skeleton: name reserved; V0 uses ausus/kernel's StubActor directly.

Maintainers

Package info

github.com/adonko3xBitters/auth-bridge

Homepage

pkg:composer/ausus/auth-bridge

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

0.1.0 2026-05-19 10:17 UTC

This package is auto-updated.

Last update: 2026-05-20 01:59:23 UTC


README

Authorization plugin satisfying RFC-014 in two modes.

Owned RFC surfaces

  • RFC-014 — Actor, ActorRef, ActorResolver contract.
  • Includes the canonical roleHash algorithm of RFC-014 §3 (locked test vectors per §3.6).
  • Built-in RoleRequired / PermissionRequired / RolesRequired Policies of RFC-011 §8.3 live here (consumed by the DSL via the Ausus\ facade re-export).

Modes

Mode When Source
stub AUSUS_AUTH_MODE=stub (default in development) Hardcoded users in config/ausus-auth-stub.php + CLI commands
laravel AUSUS_AUTH_MODE=laravel (default in production) Wraps Auth::user(); roles from Spatie\Permission OR roles model attribute OR custom resolver

Stub-mode CLI

php artisan auth:stub:create <username> --tenant=<id> --roles=<csv>
php artisan auth:stub:list
php artisan auth:stub:delete <username>

Production safety

AUSUS_AUTH_MODE=stub is rejected at boot in production unless AUSUS_AUTH_STUB_FORCE_PROD=true is set (loud override for read-only demos).

Allowed dependencies

  • ausus/kernel
  • illuminate/auth

Forbidden

  • Any other AUSUS package.
  • Direct Auth::user() access from outside the bridge (plugin authors consume Actor only).