Skip Menu |

This queue is for tickets about the Catalyst-Authentication-Credential-YubiKey CPAN distribution.

Report information
The Basics
Id: 73257
Status: resolved
Priority: 0/
Queue: Catalyst-Authentication-Credential-YubiKey

People
Owner: TJC [...] cpan.org
Requestors: chisel [...] chizography.net
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: 0.04
Fixed in: (no value)



Subject: Identity may not always bge first 12 characters
While I've never seen a response that doesn't have the identity as the first 12 characters in the OTP the specification says that the identity "is the initial 2-16 modhex characters of the OTP". This is from: http://code.google.com/p/yubikey-val-server-php/wiki/GettingStartedWritingClients With that in mind, I'd suggest future-proofing yourself by tweaking the substr() to be: my $yubi_id = substr($otp, 0, -32);
Thanks for picking this up and providing a fix. I'm releasing 0.05 now, including this fix.