n3xt0r/filament-passport-ui 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

n3xt0r/filament-passport-ui

最新稳定版本:1.0.0

Composer 安装命令:

composer require n3xt0r/filament-passport-ui

包简介

Filament v4 admin resources for managing Laravel Passport OAuth2 clients, tokens, and scopes with full auditability.

README 文档

README

Latest Version on Packagist Security Rating ISO 27001 Audit Ready GitHub Tests Action Status Maintainability Code Coverage GitHub Code Style Action Status Total Downloads

Filament Passport UI Logo

Filament Passport UI provides a structured administrative interface for managing Laravel Passport OAuth resources using Filament v4.

It is designed for applications that already rely on Filament as their primary admin panel and want to manage OAuth clients, tokens, scopes, and related authorization concepts in a clear and maintainable way without custom internal tooling or CLI-driven workflows.

This package focuses on administration and visibility, not on implementing OAuth flows themselves.

What this package does

Filament Passport UI adds a domain-oriented admin layer on top of Laravel Passport:

  • OAuth clients are managed explicitly instead of being created once via CLI
  • Scopes are modeled and managed in a structured way
  • Tokens and grants become visible and reviewable
  • Authorization decisions remain enforced by Passport at runtime

Passport itself is not modified or extended internally.
This package operates entirely at the application and UI level.

Features

OAuth Clients

  • Manage OAuth clients by grant type: authorization code, client credentials, password, personal access, implicit, and device
  • View client metadata and ownership
  • Enable or revoke clients via UI

Tokens

  • View issued access tokens
  • Revoke tokens explicitly
  • Inspect token state and expiration

Scopes & Authorization

  • Manage scopes via UI instead of static configuration
  • Model scopes as resource + action
  • Group and reason about permissions in a human-readable way
  • Designed to work with structured scope usage (e.g. attribute-based enforcement)

Filament Integration

  • Native Filament v4 resources and pages
  • Consistent UX aligned with Filament conventions
  • No custom panels or hacks required

Auditability & Compliance

  • Administrative actions (e.g. creating, updating, revoking clients or tokens) are fully auditable
  • Changes are recorded via spatie/laravel-activitylog
  • Enables traceability of security-relevant actions for compliance requirements (e.g. ISO/IEC 27001)
  • Audit logs remain application-owned and can be integrated into existing ISMS processes

Note: ISO/IEC 27001 certification applies to organizations and processes. This package supports auditability requirements but does not constitute certification or compliance by itself.

Design Principles

  • No changes to Passport internals
  • No assumptions about application architecture
  • Authorization context is defined by the application, not by this package
  • Administrative actions are explicit and reviewable

What this package does not do

  • It does not implement OAuth flows
  • It does not replace Passport
  • It does not enforce authorization decisions by itself
  • It does not guess application context or security rules

Authorization logic remains the responsibility of the application and its developers.

Why this exists

Laravel Passport provides a standards-compliant OAuth2 implementation and intentionally stays neutral regarding administration and governance.

In real-world applications, this often results in:

  • OAuth clients created via CLI and never revisited
  • Unclear ownership of machine-to-machine clients
  • Scopes defined ad-hoc as strings without structure
  • No central overview of active tokens and permissions

Filament Passport UI fills this gap by providing:

  • Visibility into OAuth configuration
  • A structured mental model for scopes
  • Explicit administrative workflows
  • A single place to review and manage OAuth-related state

This is especially useful in systems with multiple integrations, services, or teams.

Requirements

  • PHP ^8.4
  • Laravel ^12
  • Laravel Passport
  • Filament v4

Installation

Install via Composer:

composer require n3xt0r/filament-passport-ui

Run the installer:

php artisan filament-passport-ui:install

Models & Configuration

By default, the package uses the standard Laravel Passport models.

If your application uses custom Passport models, publish the configuration file and adjust the model mappings accordingly.

Documentation

Additional documentation is available at: Docs

Testing

composer install
composer test

Local development

composer install
composer serve

Open:

http://localhost:8000/admin

login with test@example.com and password.

Status

This package is actively developed and evolving.

Feedback, issues, and architectural discussion are welcome.

Future Architecture Notes

A dedicated core package for non-Filament-related authorization and domain logic already exists:

https://github.com/N3XT0R/laravel-passport-authorization-core

In future releases, additional shared authorization concepts and domain logic will be progressively consolidated into this core package as part of the planned architectural evolution.

The goal is to keep Filament Passport UI focused purely on administrative UI concerns, while all reusable and Filament-agnostic authorization logic is maintained within the core package.

This consolidation is a deliberate and planned architectural step.
The Filament-facing API and user-facing behavior of this package are expected to remain stable throughout this process.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-12-30