A service provider that enables Laravel Passport OAuth2 server functionality in Lumen micro-framework applications.
Lumen Passport is a PHP package that adapts Laravel Passport to work with the Lumen micro-framework. It solves the problem of adding OAuth2-based API authentication to lightweight Lumen applications by providing a service provider that bridges the two systems. This allows developers to use Laravel Passport's full token-based authentication system without migrating to the heavier Laravel framework.
PHP developers building RESTful APIs with Lumen who need OAuth2 authentication capabilities. It's particularly useful for teams committed to Lumen's micro-framework architecture but requiring enterprise-grade API security.
Developers choose Lumen Passport because it provides the complete Laravel Passport OAuth2 implementation in Lumen with minimal configuration. Its unique value lies in extending Laravel Passport with Lumen-specific features like route prefixing and multiple tokens per client while maintaining compatibility with existing Laravel Passport documentation and workflows.
Making Laravel Passport work with Lumen
Brings Laravel Passport's complete token-based authentication to Lumen, including token issuance, client management, and scopes without switching frameworks.
Adds features not in standard Laravel Passport, such as multiple tokens per client and client-specific TTLs, enhancing flexibility for simultaneous logins.
Allows custom prefixes for OAuth routes, enabling better API versioning and organization, as shown in the prefix configuration example.
Includes an artisan command (passport:purge) to remove expired tokens, aiding database efficiency and cleanup.
Requires manual modifications to bootstrap files, configuration loading, and service provider registration, increasing initial setup time and error risk.
Breaking changes in Laravel Passport, like version 7.3.2, necessitate workarounds such as using a custom Lumen7Application class, adding maintenance burden.
Omits web-related routes for OAuth authorization pages, making it unsuitable for applications needing interactive user consent flows.
A RESTful API package for the Laravel and Lumen frameworks.
Fully unit tested Facebook SDK v5 integration for Laravel & Lumen
Rest API boilerplate for Lumen micro-framework.
A collection of generators for Lumen and Laravel 5.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.