<?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=701" />

<title>Yubico Forum</title>
<subtitle>...visit our web-store at</subtitle>
<link href="https://forum.yubico.com/index.php" />
<updated>2011-09-07T10:41:54+01:00</updated>

<author><name><![CDATA[Yubico Forum]]></name></author>
<id>https://forum.yubico.com/feed.php?f=3&amp;t=701</id>
<entry>
<author><name><![CDATA[Simon]]></name></author>
<updated>2011-09-07T10:41:54+01:00</updated>
<published>2011-09-07T10:41:54+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=701&amp;p=2794#p2794</id>
<link href="https://forum.yubico.com/viewtopic.php?t=701&amp;p=2794#p2794"/>
<title type="html"><![CDATA[Re: V2 api and REPLAYED_OTP issues]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=701&amp;p=2794#p2794"><![CDATA[
<div class="quotetitle">thobson wrote:</div><div class="quotecontent"><br />Hi all<br /><br />I'm trying to understand the logic behind the new multi host setup for the validation api. Based on the Server 2 FAQ:<br /><br /><div class="quotetitle"><b>Quote:</b></div><div class="quotecontent">Clients will query all servers in parallel and wait for answers. Servers will not respond positively until it has synchronized the new OTP counter with the other servers, and the client will wait until it has received one positive response (i.e., OTP is valid) or until it has received one negative response (i.e., OTP is replayed).<br /></div><br />My understanding is that I can fire off 5 simultaneous requests to the different servers (api, api2 etc) and pick the first nagative or positive response. However I am getting REPLAYED_OTP responses from the servers. Can someone explain why this is happening?<br /><br />I'm issuing requests like this:<br /><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">https://api.yubico.com/wsapi/2.0/verify?id=123&amp;otp=&lt;&lt;otp&gt;&gt;&amp;nonce=563e2b2110e84aada3a07e3668e1c464<br />https://api2.yubico.com/wsapi/2.0/verify?id=123&amp;otp=&lt;&lt;otp&gt;&gt;&amp;nonce=98c10693f02a43178b3a334771b5cae4</div><br />etc<br /></div><br /><br />Hi Toby!<br /><br />That is expected, see the documentation here:<br /><br /><!-- m --><a class="postlink" href="https://code.google.com/p/yubikey-val-server-php/wiki/GettingStartedWritingClients">https://code.google.com/p/yubikey-val-s ... ingClients</a><!-- m --><br /><!-- m --><a class="postlink" href="https://code.google.com/p/yubikey-val-server-php/wiki/ValidationServerAlgorithm">https://code.google.com/p/yubikey-val-s ... rAlgorithm</a><!-- m --><br /><br />In brief, REPLAYED_REQUEST is an indication that the server already received the information about the request through another server.  The client should ignore REPLAYED_REQUEST errors and wait for the first non-REPLAYED_REQUEST return value to be returned.  If that is OK, then the OTP is OK, if that is something else or times out, then the OTP validation should fail.<br /><br />I hope this helps!<br /><br />/Simon<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=2">Simon</a> — Wed Sep 07, 2011 10:41 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[thobson]]></name></author>
<updated>2011-08-23T17:10:38+01:00</updated>
<published>2011-08-23T17:10:38+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=701&amp;p=2774#p2774</id>
<link href="https://forum.yubico.com/viewtopic.php?t=701&amp;p=2774#p2774"/>
<title type="html"><![CDATA[V2 api and REPLAYED_OTP issues]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=701&amp;p=2774#p2774"><![CDATA[
Hi all<br /><br />I'm trying to understand the logic behind the new multi host setup for the validation api. Based on the Server 2 FAQ:<br /><br /><div class="quotetitle"><b>Quote:</b></div><div class="quotecontent"><br />Clients will query all servers in parallel and wait for answers. Servers will not respond positively until it has synchronized the new OTP counter with the other servers, and the client will wait until it has received one positive response (i.e., OTP is valid) or until it has received one negative response (i.e., OTP is replayed).<br /></div><br />My understanding is that I can fire off 5 simultaneous requests to the different servers (api, api2 etc) and pick the first nagative or positive response. However I am getting REPLAYED_OTP responses from the servers. Can someone explain why this is happening?<br /><br />I'm issuing requests like this:<br /><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">https://api.yubico.com/wsapi/2.0/verify?id=123&amp;otp=&lt;&lt;otp&gt;&gt;&amp;nonce=563e2b2110e84aada3a07e3668e1c464<br />https://api2.yubico.com/wsapi/2.0/verify?id=123&amp;otp=&lt;&lt;otp&gt;&gt;&amp;nonce=98c10693f02a43178b3a334771b5cae4</div><br />etc<br /><br />Many thanks!<br /><br />Toby<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=1775">thobson</a> — Tue Aug 23, 2011 5:10 pm</p><hr />
]]></content>
</entry>
</feed>