🔑 Bare-minimum example to verify a OTP against Yubikey's API.
curl
enabled in PHP.- PEAR PHP extension.
- Yubikey PEAR component.
- Install the Yubikey PEAR component:
$ wget https://developers.yubico.com/php-yubico/Releases/Auth_Yubico-2.5.tgz
$ pear install Auth_Yubico-2.5.tgz
- Go to Yubico to get an API KEY.
- Edit
config.php
with your credentials.
Please fork and send pull requests =)