Skip to content

Latest commit

 

History

History
19 lines (16 loc) · 518 Bytes

README.md

File metadata and controls

19 lines (16 loc) · 518 Bytes

yubikey-otp-php

🔑 Bare-minimum example to verify a OTP against Yubikey's API.

Requirements

  • curl enabled in PHP.
  • PEAR PHP extension.
  • Yubikey PEAR component.

Usage

  1. 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
  1. Go to Yubico to get an API KEY.
  2. Edit config.php with your credentials.

Contribute

Please fork and send pull requests =)