<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
<link rel="self" type="application/atom+xml" href="https://forum.yubico.com/feed.php?f=8&amp;t=1684" />

<title>Yubico Forum</title>
<subtitle>...visit our web-store at</subtitle>
<link href="https://forum.yubico.com/index.php" />
<updated>2014-12-26T01:56:21+01:00</updated>

<author><name><![CDATA[Yubico Forum]]></name></author>
<id>https://forum.yubico.com/feed.php?f=8&amp;t=1684</id>
<entry>
<author><name><![CDATA[multiOTP]]></name></author>
<updated>2014-12-26T01:56:21+01:00</updated>
<published>2014-12-26T01:56:21+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=1684&amp;p=6629#p6629</id>
<link href="https://forum.yubico.com/viewtopic.php?t=1684&amp;p=6629#p6629"/>
<title type="html"><![CDATA[Pure PHP Yubicloud class (no dependency)]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=1684&amp;p=6629#p6629"><![CDATA[
Hi there,<br /><br />The LGPL PHP class Yubicloud (<a href="http://developer.sysco.ch/php/#yubicloud" class="postlink">http://developer.sysco.ch/php/#yubicloud</a>) is working <strong>without any dependency</strong>! Validation protocol 2.0 is implemented, and if you already have an API key, it will be a breeze to implement it, in ... 3 lines !!!<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">require_once('yubicloud.class.php');<br />$yubicloud = new Yubicloud(&quot;my_client_id&quot;, &quot;my_secret_key&quot;);<br />$result = $yubicloud-&gt;CheckOnYubiCloud($otp_to_check);<br /></div><br />Possible returned value is one of the following:<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">                     OK  The OTP is valid.<br />                BAD_OTP  The OTP is invalid format.<br />           REPLAYED_OTP  The OTP has already been seen by the service.<br />          BAD_SIGNATURE  The HMAC signature verification failed.<br />      MISSING_PARAMETER  The request lacks a parameter.<br />         NO_SUCH_CLIENT  The request id does not exist.<br />  OPERATION_NOT_ALLOWED  The request id is not allowed to verify OTPs.<br />          BACKEND_ERROR  Unexpected error in Yubico servers. Please contact them if you see this error.<br />     NOT_ENOUGH_ANSWERS  Server could not get requested number of syncs during before timeout.<br />       REPLAYED_REQUEST  Server has seen the OTP/Nonce combination before.<br />              BAD_NONCE  Answer Nonce is different from the request Nonce.<br />       CONNECTION_ERROR  Impossible to make a connection with the YubiCloud servers.<br />       OTP_IS_DIFFERENT  Answer OTP is different from request OTP.<br />     OUT_OF_TIME_WINDOW  Timestamp difference with the Yubico servers is bigger than yubicloud_max_time_window.<br />         SERVER_TIMEOUT  Timeout while waiting an answer from the server.<br /></div><br />If you have a valid YubiKey, you can check it directly on the project page.<br /><br />Comments and suggestions welcome!<br /><br />If you need a Yubico OTP server side solution, have a look at the <a href="http://forum.yubico.com/viewtopic.php?f=8&amp;t=1685" class="postlink">Pure PHP YubiKey class</a> (also without dependency).<br />For an OATH-HOTP support, have a look to our more complete multiOTP open source project (<a href="http://www.multiotp.net/" class="postlink">http://www.multiotp.net/</a>).<br /><br />Best regards,<br /><br />Andre<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=3398">multiOTP</a> — Fri Dec 26, 2014 1:56 am</p><hr />
]]></content>
</entry>
</feed>