2017 © Pedro Peláez
 

library yubikey-api-client-bundle

A Symfony2 bundle to integrate Yubikey OTP validation service.

image

surfnet/yubikey-api-client-bundle

A Symfony2 bundle to integrate Yubikey OTP validation service.

  • Monday, February 20, 2017
  • by joostd
  • Repository
  • 12 Watchers
  • 6 Stars
  • 6,692 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 1 Open issues
  • 10 Versions
  • 5 % Grown

The README.md

Yubikey API Client Bundle

Build Status Scrutinizer Code Quality
develop Build Status Scrutinizer Code Quality
master Build Status Scrutinizer Code Quality

A Symfony bundle to integrate Yubikey's OTP validation service., (*1)

Installation

Add the bundle to your Composer file., (*2)

composer require 'surfnet/yubikey-api-client-bundle'

Add the bundle to your AppKernel., (*3)

public function registerBundles()
{
    $bundles[] = new Surfnet\YubikeyApiClientBundle\SurfnetYubikeyApiClientBundle;
}

Usage

public function fooAction()
{
    /** @var \Surfnet\YubikeyApiClientBundle\Service\VerificationService */
    $service = $this->get('surfnet_yubikey_api_client.verification_service');

    if (!\Surfnet\YubikeyApiClient\Otp::isValid('user-input-otp-here')) {
        // User-entered OTP string is not valid.
    }

    $otp = \Surfnet\YubikeyApiClient\Otp::fromString('user-input-otp-here');
    $result = $service->verify($otp);

    if ($result->isSuccessful()) {
        // Yubico verified OTP.
    }
}

The Versions

12/11 2014

dev-release-1.x

dev-release-1.x

A Symfony2 bundle to integrate Yubikey OTP validation service.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

yubikey yubico surfnet

17/10 2014

1.2.0

1.2.0.0

A Symfony2 bundle to integrate Yubikey OTP validation service.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

yubikey yubico surfnet

17/10 2014

1.1.0

1.1.0.0

A Symfony2 bundle to integrate Yubikey OTP validation service.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

yubikey yubico surfnet

23/09 2014

1.0.0

1.0.0.0

A Symfony2 bundle to integrate Yubikey OTP validation service.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

yubikey yubico surfnet