bitbeans/yubikey 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

bitbeans/yubikey

Composer 安装命令:

composer require bitbeans/yubikey

包简介

Yubikey for Laravel

README 文档

README

Yubikey for Laravel 5

This package is based on the Laravel 4 package by Monarobase.

Buy a Yubikey

Yubico API Key Generator

Installation

Add bitbeans/yubikey to composer.json.

"bitbeans/yubikey": "dev-master"

Run composer update to pull down the latest version of Yubikey.

Now open up /config/app.php and add the service provider to your providers array.

'providers' => [
	Bitbeans\Yubikey\YubikeyServiceProvider::class,
]

And also the alias.

'aliases' => [
	'Yubikey' => Bitbeans\Yubikey\YubikeyFacade::class,
]

You can easily integrate the Yubikey Verification into your authentication system in two steps :

  • Add a field (eg yubikey_identity) in your user table
  • now check your user with username/email + password + yubikey_identity

Configuration

Run php artisan vendor:publish and modify the config file (PROJECTFOLDER/config/yubikey.php) with your own information.

Example

use YubiKey;

try {
	$yubikey_auth = Yubikey::verify(Input::get('otp'));
	$yubikey_params = Yubikey::getParameters();
	$yubikey_identity = Yubikey::getParameter('identity');
} catch (\Exception $exception) {
	$error = $e->getMessage();
}

统计信息

  • 总下载量: 145.28k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 44
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 42
  • Watchers: 6
  • Forks: 9
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-04-23