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

Commit

Permalink
Configuration for security voter
Browse files Browse the repository at this point in the history
  • Loading branch information
scheb committed Dec 28, 2015
1 parent bdbbb7b commit 2e18a61
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Resources/doc/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Configuration
For detailed information see the documentation of the authentication methods, [Google Auth](google.md) and [Email](email.md).

```yaml
# app/config/config.yml
scheb_two_factor:

# Trusted computer feature
Expand Down Expand Up @@ -52,3 +53,14 @@ scheb_two_factor:
security_tokens:
- Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken
```

The bundle comes with a security voter, which checks if the two-factor-auth is completed, if not it will deny access.
This requires a change in the security configuration:

```
# app/config/security.yml
security:
access_decision_manager:
strategy: unanimous
```

0 comments on commit 2e18a61

Please sign in to comment.