edsamonte/passport
Composer 安装命令:
composer require edsamonte/passport
包简介
Fork of official Laravel Passport with support for string-based Client IDs
关键字:
README 文档
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.
统计信息
- 总下载量: 13
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-10-07