Skip to content

Instantly share code, notes, and snippets.

@piotrbrzezina
Last active January 27, 2019 10:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save piotrbrzezina/fc272c8c2e7a6e8341ee884124b6a6e4 to your computer and use it in GitHub Desktop.
Save piotrbrzezina/fc272c8c2e7a6e8341ee884124b6a6e4 to your computer and use it in GitHub Desktop.
configure security step 2
...
firewalls:
login:
pattern: ^/login
stateless: true
anonymous: true
provider: db_provider
json_login:
check_path: /login
username_path: email
password_path: password
success_handler: lexik_jwt_authentication.handler.authentication_success
failure_handler: lexik_jwt_authentication.handler.authentication_failure
main:
pattern: ^/
provider: db_provider
stateless: true
anonymous: true
guard:
authenticators:
- lexik_jwt_authentication.jwt_token_authenticator
dev:
pattern: ^/(_(profiler|wdt)|css|images|js)/
security: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment