2017 © Pedro Peláez
 

library yubikey

Yubikey for Laravel 5

image

bitbeans/yubikey

Yubikey for Laravel 5

  • Monday, February 5, 2018
  • by bitbeans
  • Repository
  • 5 Watchers
  • 21 Stars
  • 3,567 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 6 Forks
  • 0 Open issues
  • 1 Versions
  • 28 % Grown

The README.md

Yubikey

Yubikey for Laravel 5, (*1)

This package is based on the Laravel 4 package by Monarobase., (*2)

Buy a Yubikey, (*3)

Yubico API Key Generator, (*4)

Installation

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

"bitbeans/yubikey": "dev-master"

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

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

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

And also the alias., (*8)

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

The Versions

05/02 2018

dev-master

9999999-dev

Yubikey for Laravel 5

  Sources   Download

MIT

The Requires

 

laravel laravel5 yubikey