ausus/auth-bridge
Composer 安装命令:
composer require ausus/auth-bridge
包简介
AUSUS — Laravel-bridge Authorization plugin (RFC-014). Skeleton: name reserved; V0 uses ausus/kernel's StubActor directly.
README 文档
README
⚠️ Name reservation only — not yet implemented. This package ships an empty composer manifest so the
ausus/auth-bridgename is reserved on Packagist. AUSUS v0.1.x has no authentication layer — the HTTP Router trusts theX-Tenant-IDandX-Actor-*headers as set by an upstream authenticated gateway. Installing this package in v0.1.x does nothing useful; the eventual RFC-014 implementation (canonicalroleHash,ActorResolver, Laravel auth bridge) ships in a later release.
Authorization plugin satisfying RFC-014 in two modes.
Owned RFC surfaces
- RFC-014 — Actor, ActorRef, ActorResolver contract.
- Includes the canonical
roleHashalgorithm of RFC-014 §3 (locked test vectors per §3.6). - Built-in
RoleRequired/PermissionRequired/RolesRequiredPolicies of RFC-011 §8.3 live here (consumed by the DSL via theAusus\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/kernelilluminate/auth
Forbidden
- Any other AUSUS package.
- Direct
Auth::user()access from outside the bridge (plugin authors consumeActoronly).
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-05-20