Yubico Forum

...visit our web-store at store.yubico.com
It is currently Tue Jan 30, 2018 1:23 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Sat May 24, 2008 12:04 pm 
Offline
Site Admin
Site Admin

Joined: Tue May 06, 2008 7:22 pm
Posts: 151
If you have missed it, all the code for our server is available from google code:

http://code.google.com/p/yubico-openid-server/

If you have any questions about it, this topic could be used..

/Simon


Top
 Profile  
Reply with quote  

Share On:

Share on Facebook FacebookShare on Twitter TwitterShare on Tumblr TumblrShare on Google+ Google+

PostPosted: Sun May 25, 2008 5:16 pm 
Offline

Joined: Sun May 25, 2008 5:06 pm
Posts: 27
Thank your for publishing the code for the open-ID server. I just noticed that the way it authenticates the yubikey itself is by connecting to your site, therefore making my own open-ID implementation dependent on your servers.

Do you by any chance have the AES-decoding/modhex-routines in PHP? That would make my implementation 100% independent of your servers.

Best regards,
Alex


Top
 Profile  
Reply with quote  
PostPosted: Thu Jun 12, 2008 4:07 pm 
Offline

Joined: Thu Jun 12, 2008 10:43 am
Posts: 3
I have installed the server into the directory /usr/share/php/yubico-openid-server/
I created the directory /usr/local/xxx/OpenIDs/ for the keys.
A sym link makes the /examples/consumer/ htdocs of the webserver
Another sym link makes /example/server/ htdocs/server

I login at my pip.verisignlab.com with my OpenID (me3332) point my OpenID URL (http://me3332.pip.verisignlabs.com) in the form of my root web page of the yubico-openid-server and will be recognized.

Then I tried to use the /server and get a prompt for my yubikey. When I put in this information, the screen remains empty. The log file shows:

Quote:
PHP Fatal error: Call to a member function verify() on a non-object in /usr/share/php/yubico-openid-server/examples/server/lib/session.php on line 117, referer: http://openid.elmit.net/server/server.php


The last lines of session.php around line 117 are:

117 $auth = $yubi->verify($yubikey);
118 if (PEAR::isError($auth)) {
119 return array(array('Authentication failure: ' . $auth->getMessage() .
120 '<!-- Debug output from server: ' . $yubi->getLastResponse() . '-->'),


What am I missing?

bye

R.


Top
 Profile  
Reply with quote  
PostPosted: Sun Jun 15, 2008 5:23 pm 
Offline

Joined: Wed Jun 04, 2008 5:01 pm
Posts: 1
Location: Nancy, France
hasterguf wrote:
Do you by any chance have the AES-decoding/modhex-routines in PHP? That would make my implementation 100% independent of your servers.


You can find php classes in this topic

;)


Top
 Profile  
Reply with quote  
PostPosted: Sun Jun 15, 2008 11:52 pm 
Offline
Site Admin
Site Admin

Joined: Tue May 06, 2008 7:22 pm
Posts: 151
ELMIT wrote:
Then I tried to use the /server and get a prompt for my yubikey. When I put in this information, the screen remains empty. The log file shows:

Quote:
PHP Fatal error: Call to a member function verify() on a non-object in /usr/share/php/yubico-openid-server/examples/server/lib/session.php on line 117, referer: http://openid.elmit.net/server/server.php


The last lines of session.php around line 117 are:

117 $auth = $yubi->verify($yubikey);
118 if (PEAR::isError($auth)) {
119 return array(array('Authentication failure: ' . $auth->getMessage() .
120 '<!-- Debug output from server: ' . $yubi->getLastResponse() . '-->'),


What am I missing?


Most likely you are missing the instructions to modify config.php to use the Yubico PHP module, see:

http://code.google.com/p/yubico-openid- ... adMeYubico

If you don't do this step, $yubi will be null and the code will fail with that error message.

Good luck...

/Simon


Top
 Profile  
Reply with quote  
PostPosted: Sun Jun 29, 2008 10:18 am 
Offline

Joined: Thu Jun 12, 2008 10:43 am
Posts: 3
Simon,

thanks, indeed I forgot to add the magic:
$yubi = &new Auth_Yubico('CLIENT-API-ID', 'CLIENT-API-KEY');

To find the CLIENT-API-ID and CLIENT-API-KEY I used the web application.

I still need a push to get to the next level. I can now use ONE key. What do I need to modify for multiple keys?
Currently I am using config-with-store-file.


((BTW, is this forum moderated? I am sure I posted above already yesterday, but cannot find it in the forum. I am therefore not sure if something gone wrong with the submit of it is moderated))

bye

R.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group