Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 1.67 KB

index.md

File metadata and controls

39 lines (28 loc) · 1.67 KB

scheb/two-factor-bundle

This bundle provides two-factor authentication for your Symfony application.

Index

Two-Factor Authentication Methods

The bundle supports the following authentication methods out of the box:

See Providers for more information about custom or third-party provider.

The Authentication Process

The bundle hocks into security layer and listens for authentication events. When a login happens and the user has two-factor authentication enabled, access and privileges are temporary withhold from the user. Instead, the user is challenged to enter a valid two-factor authentication code. Only when that code is entered correctly, the roles are granted.

Authentication process

To represent the state between login and a valid two-factor code being entered, the bundle introduces the role-like attribute IS_AUTHENTICATED_2FA_IN_PROGRESS, which can be used in is_granted() calls. IS_AUTHENTICATED_FULLY is, just like roles, withhold until the two-factor authentication step has been completed successfully.