New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

marcinkozak/yubikey

Yubikey for Laravel 5
7,858 1
Install
composer require marcinkozak/yubikey:dev-master
PHP:>=5.4.0
License:MIT
Last Updated:May 18, 2016
Links: GitHub  ·  Packagist
Maintainer: mkozak

Yubikey

Yubikey for Laravel 5

This package contain fixes which have been found on the bitbeans/Yubikey Repository.

Buy a Yubikey

Yubico API Key Generator

Installation

Add marcinkozak/yubikey to composer.json.

"marcinkozak/yubikey": "dev-master"

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

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

'providers' => array(
	'MarcinKozak\Yubikey\YubikeyServiceProvider',
)

And also the alias.

'aliases' => array(
	'Yubikey' => 'MarcinKozak\Yubikey\YubikeyFacade',
)

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 $e)
{
	$error = $e->getMessage();
}

Related Packages

hmazter/laravel-log-queue

Laravel 5+ package to push Queued jobs to the log

12,516 5
devfactory/minify

A package for minifying styles and javascript for laravel 5

409,221 82
bitbeans/yubikey

Yubikey for Laravel

178,398 43
rapide/yubikey

Yubikey for Laravel

10,109 1
ajtarragona/tsystems-client

Client per serveis de l'ERP de Tsystems (Tercers, Padró, Vialer)

1,061 0