DuoSecurity
Magento\TwoFactorAuth\Model\Provider\Engine\DuoSecurity
What it does
This class provides Duo Security two-factor authentication integration for Magento 2 admin users.
Developers use it to enable Duo's Universal Prompt or Auth API for verifying admin login attempts, including enrolling new users, initiating authentication flows, and validating authentication codes.
It handles both modern Universal Prompt and legacy Auth API authentication methods.
Public Methods
- getApiHostname()
- verify()
- isEnabled()
- initiateAuth()
- healthCheck()
- generateDuoState()
- enrollNewUser()
- assertUserIsValid()
- authorizeUser()