certly/laravel-u2f
Composer 安装命令:
composer require certly/laravel-u2f
包简介
U2F support for laravel 5 (forked from lahaxearnaud/laravel-u2f)
README 文档
README
Integrate FIDO U2F into Laravel 5.x applications. You'll need to be accessing your application from an App ID compliant domain; localhost support is finicky.
Install
composer require certly/laravel-u2f
In config/app.php, add the provider Certly\U2f\LaravelU2fServiceProvider::class to the providers array and 'U2f' => Certly\U2f\U2fServiceFacade::class to the aliases array.
Publishing
This will copy the needed resources (views, CSS, and JavaScript) to your project so you can modify them.
php artisan vendor:publish --provider="Certly\U2f\U2fServiceProvider"
php artisan migrate
You can add the following to your mix.scripts call if you're using Elixir to automatically include the needed JavaScript in your central JavaScript file.
elixir(function(mix) { mix.scripts([ // ... 'u2f/app.js', 'u2f/u2f.js',
The included views assume there is an app view. If this isn't the case, you'll need to manually modify the views in the u2f folder (under resources/views).
Middleware
In the app/Http/Kernel.php file, add the following to $routeMiddleware. This middleware is called internally by the package, so it is important that it is present.
protected $routeMiddleware = [ // ... 'u2f' => Certly\U2f\Http\Middleware\U2f::class, ];
Usage
Middleware
Route::get('admin/profile', ['middleware' => ['auth', 'u2f'], function () { // }]);
Configuration
config/u2f.php is commented and will be created when you publish the provider via the above command.
Security
Security issues can be reported via HackerOne or via email at ian@certly.io.
Credits
License
certly/laravel-u2f 适用场景与选型建议
certly/laravel-u2f 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 343 次下载、GitHub Stars 达 9, 最近一次更新时间为 2015 年 10 月 24 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「security」 「otp」 「u2f」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 certly/laravel-u2f 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 certly/laravel-u2f 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 certly/laravel-u2f 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Provide a way to secure accesses to all routes of an symfony application.
Support passkeys and Web Authentication
A library providing U2F authentication
It's a barebone security class written on PHP
FIDO U2F Support For PHP
OTP generating package
统计信息
- 总下载量: 343
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 9
- 点击次数: 24
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-10-24