Class TfYubikeyAuthenticator
Handles two-factor authentication via a Yubikey hardware token.
Tokens are available from yubico.com. Set up requires obtaining a Client ID and secret key from Yubico, please refer to the manual for instructions on how to set it up.
Note that the Yubikey authentication methods within this class are Copyright Tom Corwine and distributed under the GPL (V2). Please see the separate copyright block within the class file.
Do not attempt to use this file without reading the manual.
Package: security
Copyright: Simon Wilkinson 2013+ (https://tuskfish.biz)
License: GNU General Public License (GPL) V2
Author: Simon Wilkinson simon@isengard.biz
Version: Release: 1.0
Since: 1.0
Var: TfValidator $validator Instance of the Tuskfish data validator class.
Var: int $_id ID of the Yubikey hardware token (first 12 characters of output).
Var: string $_signatureKey Yubikey API key obtained from https://upgrade.yubico.com/getapikey/
Var: string $_response Response message from last verification attempt
Var: array $_curlResult Response from cURL request to Yubico authentication server.
Var: string $_curlError Error message.
Var: int $_timestampTolerance Timeout limit (expiry) for authentication requests.
Var: int $_curlTimeout Timeout limit when contacting Yubico authentication server.
Located at trust_path/libraries/tuskfish/class/TfYubikeyAuthenticator.php
Copyright: Simon Wilkinson 2013+ (https://tuskfish.biz)
License: GNU General Public License (GPL) V2
Author: Simon Wilkinson simon@isengard.biz
Version: Release: 1.0
Since: 1.0
Var: TfValidator $validator Instance of the Tuskfish data validator class.
Var: int $_id ID of the Yubikey hardware token (first 12 characters of output).
Var: string $_signatureKey Yubikey API key obtained from https://upgrade.yubico.com/getapikey/
Var: string $_response Response message from last verification attempt
Var: array $_curlResult Response from cURL request to Yubico authentication server.
Var: string $_curlError Error message.
Var: int $_timestampTolerance Timeout limit (expiry) for authentication requests.
Var: int $_curlTimeout Timeout limit when contacting Yubico authentication server.
Located at trust_path/libraries/tuskfish/class/TfYubikeyAuthenticator.php
Methods summary
public
boolean
|
|
protected
string
|
#
createSignedRequest( string $urlParams )
Create URL with embedded and signed authentication request for Yubico authentication server. |
protected
string
|
|
public
integer
|
|
public
string
|
|
public
integer
|
|
protected
boolean
|
|
protected
boolean
|
|
protected
boolean
|
|
protected
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
Properties summary
protected
|
$validator
|