edsamonte / passport
Fork of official Laravel Passport with support for string-based Client IDs
v4.0.3-beta2
2017-10-07 13:08 UTC
Requires
- php: >=5.6.4
- firebase/php-jwt: ~3.0|~4.0|~5.0
- guzzlehttp/guzzle: ~6.0
- illuminate/auth: ~5.4
- illuminate/console: ~5.4
- illuminate/container: ~5.4
- illuminate/contracts: ~5.4
- illuminate/database: ~5.4
- illuminate/encryption: ~5.4
- illuminate/http: ~5.4
- illuminate/support: ~5.4
- league/oauth2-server: ^6.0
- phpseclib/phpseclib: ^2.0
- symfony/psr-http-message-bridge: ~1.0
- zendframework/zend-diactoros: ~1.0
Requires (Dev)
- mockery/mockery: ~0.9
- phpunit/phpunit: ~5.0
This package is not auto-updated.
Last update: 2026-06-21 13:15:32 UTC
README
Introduction
This is a fork of the official Laravel Passport to support string-based OAuth2 Client IDs
Laravel Passport is an OAuth2 server and API authentication package that is simple and enjoyable to use.
Installation
composer require edsamonte/passport 4.0.x-dev
Official Documentation
Documentation for Passport can be found on the Laravel website.
Custom Client ID generator
Code example:
Passport::setClientIdGenerator(function($clientName){ return str_slug($clientName) . "-" . bin2hex(random_bytes(2)); });
This example will generate something like mobile-app-client-f8
This is helpful if you want to generate fixed-length Client IDs and to discourage brute-force Client ID guess attacks.
License
Laravel Passport is open-sourced software licensed under the MIT license.