Skip to content
This repository has been archived by the owner on Dec 2, 2021. It is now read-only.

Latest commit

History

History
47 lines (32 loc) 路 1.84 KB

index.md

File metadata and controls

47 lines (32 loc) 路 1.84 KB

scheb/two-factor-bundle

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

Index

How-to's:

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.