|Last Updated||Ratings||Unique User Downloads||Download Rankings|
|2019-04-25 (27 days ago)||Not yet rated by the users||Total: 132 This week: 1||All time: 8,878 This week: 376|
|yubicloud 4.3.21||GNU Lesser Genera...||5.3.0||PHP 5, Web services, Security|
This class can check YubiKeys OTP in multiple servers.
Yubicloud PHP class is a GNU LGPL class to check YubiKeys using YubiCloud.
(c) 2014-2019 SysCo systemes de communication sa The Yubicloud PHP class is a subset of the multiOTP open source project. http://www.multiOTP.net/
Current build: 22.214.171.124 (2019-04-24)
No external file is needed (no PEAR, no PECL, no cURL).
You need a Yubico API key which is free if you have at least one Yubikey. You can ask for your own key here: https://upgrade.yubico.com/getapikey/
<?php require_once('yubicloud.class.php'); $yubicloud = new Yubicloud("my_client_id", "my_secret_key"); $result = $yubicloud->checkOnYubiCloud($otp_to_check); ?>
OK The OTP is valid. BAD_OTP The OTP is invalid format. REPLAYED_OTP The OTP has already been seen by the service. BAD_SIGNATURE The HMAC signature verification failed. MISSING_PARAMETER The request lacks a parameter. NO_SUCH_CLIENT The request id does not exist. OPERATION_NOT_ALLOWED The request id is not allowed to verify OTPs. BACKEND_ERROR Unexpected error in Yubico servers. Please contact them if you see this error. NOT_ENOUGH_ANSWERS Server could not get requested number of syncs during before timeout. REPLAYED_REQUEST Server has seen the OTP/Nonce combination before. BAD_NONCE Answer Nonce is different from the request Nonce. CONNECTION_ERROR Impossible to make a connection with the YubiCloud servers. OTP_IS_DIFFERENT Answer OTP is different from request OTP. OUT_OF_TIME_WINDOW Timestamp difference with the Yubico servers is bigger than yubicloud_max_time_window. SERVER_TIMEOUT Timeout while waiting an answer from the server.
Check yubicloud.demo.php for a full implementation example.
You can support our open source projects with donations and sponsoring. Sponsorships are crucial for ongoing and future development! If you'd like to support our work, then consider making a donation, any support is always welcome even if it's as low as $1! You can also sponsor the development of a specific feature. Please contact us in order to discuss the detail of the implementation.
[Donate via PayPal by clicking here]. [![Donate via PayPal]] : https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=N56M9E2SEAUD4 : https://www.paypalobjects.com/webstatic/mktg/logo/pp_cc_mark_37x23.jpg
And for more PHP classes, have a look on PHPclasses.org, where a lot of authors are sharing their classes for free.
|Yubicloud PHP class demo|
|Version Control||Unique User Downloads||Download Rankings|