Log in
Interface

ProviderInterface

Magento\TwoFactorAuth\Api\ProviderInterface

What it does

This interface defines the contract for two-factor authentication (2FA) providers in Magento 2.

Developers implement this interface when creating custom 2FA methods (like Google Authenticator, SMS, or email verification) to integrate with Magento's security system.

It handles provider configuration, activation status, user setup, and defines the authentication workflow actions.

Public Methods

  • isEnabled()
  • getEngine()
  • getCode()
  • getName()
  • getIcon()
  • isResetAllowed()
  • resetConfiguration()
  • isConfigured()
  • isActive()
  • activate()
  • getConfigureAction()
  • getAuthAction()
  • getExtraActions()