2017 © Pedro Peláez
 

library yubikey

Yubikey for Laravel 5

image

marcinkozak/yubikey

Yubikey for Laravel 5

  • Wednesday, May 18, 2016
  • by mkozak
  • Repository
  • 1 Watchers
  • 1 Stars
  • 5,033 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 6 Forks
  • 0 Open issues
  • 1 Versions
  • 11 % Grown

The README.md

Yubikey

Yubikey for Laravel 5, (*1)

This package contain fixes which have been found on the bitbeans/Yubikey Repository., (*2)

Buy a Yubikey, (*3)

Yubico API Key Generator, (*4)

Installation

Add marcinkozak/yubikey to composer.json., (*5)

"marcinkozak/yubikey": "dev-master"

Run composer update to pull down the latest version of Yubikey., (*6)

Now open up PROJECTFOLDER/config/app.php and add the service provider to your providers array., (*7)

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

And also the alias., (*8)

'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, (*9)

Configuration

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

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();
}

The Versions

18/05 2016

dev-master

9999999-dev

Yubikey for Laravel 5

  Sources   Download

MIT

The Requires

 

laravel laravel5 yubikey