Firesphere\YubiAuth\Providers\YubikeyAuthProvider
Class YubikeyAuthProvider
Synopsis
class YubikeyAuthProvider
extends BootstrapMFAProvider
implements
MFAProvider
{
- // members
- protected Validate $service;
- // methods
- public void __construct()
- public ValidationResult|Member checkNoYubiAttempts()
- public ValidationResult|Member checkNoYubiLogins()
- public ValidationResult|Member checkNoYubiDays()
- public ValidationResult|Member checkYubikey()
- private ValidationResult|Member authenticateYubikey()
- public void validateToken()
- protected void validateMemberCount()
- protected void validateMemberID()
- protected void validateFingerprint()
- private void updateMember()
- public Validate getService()
- public void setService()
Hierarchy
Extends
- Firesphere\BootstrapMFA\Providers\BootstrapMFAProvider
Uses
- SilverStripe\Core\Config\Configurable
Implements
- Firesphere\BootstrapMFA\Providers\MFAProvider
Tasks
Line | Task |
---|---|
148+ | improve this, it's a bit overly complicated |
148+ | use the ValidationResult as e reference instead of returning |
Members
protected
- $service — Yubikey\Validate
Methods
private
- authenticateYubikey() — Validate a member plus it's yubikey login. It compares the fingerprintt and after that, tries to validate the Yubikey string
- updateMember() — Update the member to forcefully enable YubiAuth Also, register the Yubikey to the member.
protected
public
- __construct() — Setup
- checkNoYubiAttempts()
- checkNoYubiDays() — Check if the member is allowed login after so many days of not using a yubikey
- checkNoYubiLogins() — Check if a member is allowed to login without a yubikey
- checkYubikey()
- getService()
- setService()
- validateToken() — Check if the yubikey is unique and linked to the member trying to logon