Yubico Forum

Question about Integrating with PHP
Page 1 of 1

Author:  khamilton [ Wed Aug 17, 2011 5:31 pm ]
Post subject:  Question about Integrating with PHP

I have downloaded the standalone PHP class for Yubikey integration. I have followed the instructions with it.

When I enter my client ID and secret key in the yubikeytest.php file, it fails when I try to log in. It says "That is not your Yubikey."

I am not sure what the problem is. I went to https://upgrade.yubico.com/getapikey/ and got a client ID and a secret key. It said on that page that it might take 5 minutes for it to be recognized by the Yubico Validation Servers, but it has been longer than 5 minutes. Is it possible that the wait is longer than 5 minutes?

Let me know if you have any ideas.


Author:  Rik [ Mon Aug 22, 2011 2:24 pm ]
Post subject:  Re: Question about Integrating with PHP

Can you show some code for what you have and what is not working?

Author:  netagence [ Tue Dec 06, 2011 11:05 am ]
Post subject:  Re: Question about Integrating with PHP

Was this solved and how ?

Author:  Fredrik-at-Yubico [ Wed Dec 07, 2011 3:03 pm ]
Post subject:  Re: Question about Integrating with PHP

After googling, I guess you are talking about https://github.com/rnavarro/yubikey-php/blob/master/yubikeytest.php.

For the record, that is not software written by or supported by Yubico.

From just looking at the source code, it seems the error message you got is given if you have not set the appropriate $token_id in the source code. Why it compares an MD5 hash of the public id + username instead of just a straight forward string comparison beats me.


Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group