承接 ausus/auth-bridge 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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-bridge name is reserved on Packagist. AUSUS v0.1.x has no authentication layer — the HTTP Router trusts the X-Tenant-ID and X-Actor-* headers as set by an upstream authenticated gateway. Installing this package in v0.1.x does nothing useful; the eventual RFC-014 implementation (canonical roleHash, 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 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).

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-05-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固