2017 © Pedro Peláez
 

library yubikey

Yubikey client library

image

cmuench/yubikey

Yubikey client library

  • Thursday, August 11, 2016
  • by cmuench
  • Repository
  • 0 Watchers
  • 2 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Yubikey Authentication Library

Build Status Code Climate Test Coverage, (*1)

Provides a \CMuench\Yubikey\AuthenticationClient class which can be used to authenticate against the yubikey auth servers., (*2)

It's possible to add own servers by config., (*3)

Example:, (*4)

<?php

require_once 'vendor/autoload.php';

// with Guzzle
// composer require "php-http/guzzle5-adapter"

$otp = '<otp>'; // Onetime password
$yubikey = '<yubikey>'; // Yubikey of the user
$clientId = '<client_id>'; // Client-ID of the application
$clientSecret = '<api_secret>'; // API-Secret of the application

$apiConfiguration = new \CMuench\Yubikey\Value\ApiConfiguration($clientId, $clientSecret);

$httpClient = new \Http\Adapter\Guzzle5();
$requestFactory = new \Http\Message\MessageFactory\GuzzleMessageFactory();

$client = new \CMuench\Yubikey\AuthenticationClient($apiConfiguration, $httpClient, $requestFactory);

$isValid = $client->verify($otp, $yubikey);

The Versions

11/08 2016

dev-master

9999999-dev

Yubikey client library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Christian Münch

authentication validation http otp yubikey