How does it work?

Alpha5 - January 8, 2009 - 13:54
Project:YubiKey
Version:6.x-1.0-beta2
Component:Documentation
Category:support request
Priority:minor
Assigned:rubinj
Status:active
Description

I am looking for a way login like your module? After enable, I get two warning:

warning: Missing argument 2 for variable_get(), called in D:\Drupal\www\sites\all\modules\yubikey\yubikey.pages.inc on line 146 and defined in D:\Drupal\www\includes\bootstrap.inc on line 480.
warning: Missing argument 2 for variable_get(), called in D:\Drupal\www\sites\all\modules\yubikey\yubikey.pages.inc on line 155 and defined in D:\Drupal\www\includes\bootstrap.inc on line 480.

Is this OK to ignore?

But I don't know how it work. If I just buy a Yubico usb, can I login by Yubico in my site?

#1

rubinj - February 4, 2009 - 06:43
Priority:normal» minor
Assigned to:Anonymous» rubinj
Status:active» closed

I have updated the variable_get calls to include a default value which will eliminate the errors you were receiving. The errors were, however, safe to ignore.

In order to use the module, you have to have a yubico usb key. Once you have the key, you need to get an api key and client id from yubico. Then, you just need to enable the module and enter the api key and client id in the settings fields.

Once this is done, your user account page will have a new tab for the yubikey. There, you just click to add a yubikey to that account, generate an otp from your yubikey in the field and submit.

Now, wherever you login to your site, you have an option for Yubikey Logins. Click that link, generate an otp with the yubikey in the field and submit. You can optionally require a password in addition to the otp.

You are now logged in. No username (or optionally password either) required.

#2

Alpha5 - April 7, 2009 - 04:24

I get key
API Key : xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
id: 3456

from api.yubico.com

But when I go to my account page, generate an otp , after submit I get white page
"HTTP 500 Internal Server Error".
I can not assign usb to account.

#3

Alpha5 - April 7, 2009 - 16:11

Now I know this module need php curl extension. Now I get error when submit OTP
Sorry, YubiKey OTP validation failed with message: ERROR CONNECTING TO YUBICO - 60
I find out that it relate to curl ssl on window. Still not work.

Where the way to get API key and API Id?
https://api.yubico.com/get-api-key/ or https://api.yubico.com/yms ???

The id is in form 3456 or cccccccksjdhf ???

#4

Alpha5 - April 7, 2009 - 14:36
Status:closed» active

#5

Alpha5 - April 7, 2009 - 14:39
Version:6.x-1.0-beta1» 6.x-1.0-beta2
 
 

Drupal is a registered trademark of Dries Buytaert.