Fork of official Laravel Passport with support for string-based Client IDs
edsamonte/passport is a Laravel package for fork of official laravel passport with support for string-based client ids.
It currently has 0 GitHub stars and 13 downloads on Packagist (latest version v4.0.3-beta2).
Install it with composer require edsamonte/passport.
Discover more Laravel packages by edsamonte
or browse all Laravel packages to compare alternatives.
Last updated
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.
composer require edsamonte/passport dev-master
Documentation for Passport can be found on the Laravel website.
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.
Laravel Passport is open-sourced software licensed under the MIT license.