<?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=3&amp;t=700" />

<title>Yubico Forum</title>
<subtitle>...visit our web-store at</subtitle>
<link href="https://forum.yubico.com/index.php" />
<updated>2011-12-07T14:51:02+01:00</updated>

<author><name><![CDATA[Yubico Forum]]></name></author>
<id>https://forum.yubico.com/feed.php?f=3&amp;t=700</id>
<entry>
<author><name><![CDATA[Anonymous]]></name></author>
<updated>2011-12-07T14:51:02+01:00</updated>
<published>2011-12-07T14:51:02+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=700&amp;p=2852#p2852</id>
<link href="https://forum.yubico.com/viewtopic.php?t=700&amp;p=2852#p2852"/>
<title type="html"><![CDATA[Re: Super simple Yubikey server access with PHP - is this wr]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=700&amp;p=2852#p2852"><![CDATA[
I'd recommend using the PHP validation client. See the ReadMe for a super-simple example.<br /><br /><a href="http://code.google.com/p/php-yubico/" class="postlink">http://code.google.com/p/php-yubico/</a><br /><br />/Fredrik<p>Statistics: Posted by Guest — Wed Dec 07, 2011 2:51 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[netagence]]></name></author>
<updated>2011-12-06T11:06:02+01:00</updated>
<published>2011-12-06T11:06:02+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=700&amp;p=2849#p2849</id>
<link href="https://forum.yubico.com/viewtopic.php?t=700&amp;p=2849#p2849"/>
<title type="html"><![CDATA[Re: Super simple Yubikey server access with PHP - is this wr]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=700&amp;p=2849#p2849"><![CDATA[
Did you manage to make that example work ?<br /><br />Regards.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=1883">netagence</a> — Tue Dec 06, 2011 11:06 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Rik]]></name></author>
<updated>2011-08-23T09:26:31+01:00</updated>
<published>2011-08-23T09:26:31+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=700&amp;p=2773#p2773</id>
<link href="https://forum.yubico.com/viewtopic.php?t=700&amp;p=2773#p2773"/>
<title type="html"><![CDATA[Super simple Yubikey server access with PHP - is this wrong?]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=700&amp;p=2773#p2773"><![CDATA[
Ive been reading a lot about the Yubikey the last week and found a PDF slideshow that listed a URL accessing the API in a simple manner so I produced this PHP code using it :<br /><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent"><br />&lt;?php<br /><br />$otp      = &quot;cccccccvfckdvfblijjfctibtlrbejjddjiligvbkevu&quot;;   // OTP from Yubikey<br />$yubikeyid   = substr($otp, 0, 12);               // Grab first 12 chars for unique userid<br /><br />$apiserver1 = &quot;https://api.yubico.com/wsapi/verify?id=1&amp;otp=&quot;;      // Yubico API server<br /><br />$serverresponse = file_get_contents($apiserver1 . $otp);      // Access server using concat string of URL plus OTP<br />$pos = strpos($serverresponse, &quot;status=OK&quot;);            // Check the server response for &quot;status=ok&quot;<br /><br />if ($pos === false) {                     // If the string is not returned there is an error<br />    echo &quot;$yubikeyid - Invalid&lt;BR&gt;&lt;BR&gt; - $serverresponse&quot;;<br />} else {                        // Else the string was found and the Yubikey is valid, now check the userid etc...<br />    echo &quot;$yubikeyid -  OK&lt;BR&gt;&lt;BR&gt; - $serverresponse&quot;;<br />}<br /><br />?&gt;<br /><br /></div><br /><br />Is this too simplistic / a bad idea?<br /><br />Thanks<br />R.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=1772">Rik</a> — Tue Aug 23, 2011 9:26 am</p><hr />
]]></content>
</entry>
</feed>