pmdevelopment / yubikey-otp-bundle
Validate Yubikey OTP in Symfony2
1.1
2018-03-01 09:04 UTC
Requires
- php: ^7.0.19
- guzzlehttp/guzzle: ^6.3.0
This package is auto-updated.
Last update: 2024-12-12 02:27:30 UTC
README
Install
Add to composer:
composer require "pmdevelopment/yubikey-otp-bundle" "dev-master"
Add to kernel:
new PM\Bundle\YubikeyOtpBundle\PMYubikeyOtpBundle(),
Add to config.yml
pm_yubikey_otp: server: uri: https://api2.yubico.com/wsapi/2.0/ client_id: YourClientId client_secret: YourApiKey
Usage
Now you can validate any a OTP by using a service
$this->get("pm_yubikey_otp.validation")->verify("YourOtpToValidate", "OptionalTheIdentityYouExpect");