跳到内容

事件

编辑此页

Bundle 在身份验证过程中分发以下事件

scheb_two_factor.authentication.require

常量: Scheb\TwoFactorBundle\Security\TwoFactor\Event\TwoFactorAuthenticationEvents::REQUIRE

当用户需要双因素身份验证时分发。当您尝试访问需要完全身份验证的路径时,会发生这种情况。当您成功完成双因素身份验证步骤,但还需要另一个双因素步骤(多因素身份验证)时,也会发生这种情况。

通常,当此事件分发时,请求会重定向到双因素身份验证表单。

scheb_two_factor.authentication.form

常量: Scheb\TwoFactorBundle\Security\TwoFactor\Event\TwoFactorAuthenticationEvents::FORM

当显示双因素身份验证表单时分发。

scheb_two_factor.authentication.attempt

常量: Scheb\TwoFactorBundle\Security\TwoFactor\Event\TwoFactorAuthenticationEvents::ATTEMPT

当尝试双因素身份验证时分发,就在检查代码之前。

scheb_two_factor.authentication.success

常量: Scheb\TwoFactorBundle\Security\TwoFactor\Event\TwoFactorAuthenticationEvents::SUCCESS

当单个提供程序的双因素身份验证成功时分发。这并不意味着整个双因素过程已完成。

scheb_two_factor.authentication.failure

常量: Scheb\TwoFactorBundle\Security\TwoFactor\Event\TwoFactorAuthenticationEvents::FAILURE

当给定的双因素身份验证码不正确时分发。

scheb_two_factor.authentication.complete

常量: Scheb\TwoFactorBundle\Security\TwoFactor\Event\TwoFactorAuthenticationEvents::COMPLETE

当整个双因素身份验证过程成功完成时分发,这意味着所有需要的提供商的双因素身份验证码都正确,并且用户现在已完全通过身份验证。

本作品,包括代码示例,根据 Creative Commons BY-SA 3.0 许可协议获得许可。
目录
    版本