tan-ce / php-yubikey-oath

PHP Application for generating OATH tokens after authenticating a Yubikey token
GNU General Public License v2.0
1 stars 0 forks source link

Authentication failed: NO_VALID_ANSWER #1

Open ghost opened 10 years ago

ghost commented 10 years ago

Hello. Not sure if this is the right place for support.

When attempting to log in I get 'Authentication failed: NO_VALID_ANSWER'

Do you have an example config I could take a look at?

tan-ce commented 10 years ago

Hi. config-sample.inc.php contains the basic configuration template. You need to fill in YK_API_KEY, YK_PUB_ID, SECRET, and the MySQL database settings.

If you are using your own validation server, you should also change YK_VAL_URL.

YK_API_KEY is the API key, if using Yubico's servers, you need to generate one for use.

YK_PUB_ID is the first 12 characters of the OTP generated by your Yubikey.

Note that I assume you have a MySQL server and Yubikey validation server (if running your own validation server) set up correctly.