Skip to content

Commit

Permalink
Fix security.yaml.
Browse files Browse the repository at this point in the history
  • Loading branch information
zerai committed Mar 4, 2024
1 parent 6d58a21 commit 1128e69
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions config/packages/security.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,30 +14,21 @@ security:
security: false
api:
pattern: ^/api
security: false
security: true
stateless: true
oauth2: true
main:
# login_throttling:
# max_attempts: 3
# interval: '5 minutes'
login_throttling:
max_attempts: 6
interval: '5 minutes'
lazy: true
provider: app_user_provider
custom_authenticators:
- App\Security\Authenticator\OeModulesLoginFormAuthenticator
#- Symfony\Component\Security\Http\Authenticator\FormAuthenticator
# form_login:
# login_path: app_login
# check_path: app_login
# enable_csrf: true
# default_target_path: app_index
# use_referer: true
logout:
path: app_logout
target: app_index

#login_throttling: true

# activate different ways to authenticate
# https://symfony.com/doc/current/security.html#the-firewall

Expand All @@ -62,7 +53,7 @@ security:
- { path: ^/.well-known, roles: PUBLIC_ACCESS }
- { path: ^/register, roles: PUBLIC_ACCESS }
- { path: ^/verify, roles: PUBLIC_ACCESS }
#- { path: ^/api, role: ROLE_OAUTH2_EMAIL }
- { path: ^/api, role: ROLE_OAUTH2_EMAIL }
- { path: ^/, role: ROLE_USER }

when@test:
Expand Down

0 comments on commit 1128e69

Please sign in to comment.