|
|
|
@@ -13,18 +13,27 @@ security: |
|
|
|
dev: |
|
|
|
pattern: ^/(_(profiler|wdt)|css|images|js)/ |
|
|
|
security: false |
|
|
|
api: |
|
|
|
pattern: ^/api/ |
|
|
|
auth: |
|
|
|
pattern: ^/api/auth |
|
|
|
stateless: true |
|
|
|
provider: app_user_provider |
|
|
|
jwt: ~ |
|
|
|
main: |
|
|
|
json_login: |
|
|
|
check_path: /auth # The name in routes.yaml is enough for mapping |
|
|
|
check_path: /api/auth |
|
|
|
username_path: email |
|
|
|
password_path: password |
|
|
|
success_handler: lexik_jwt_authentication.handler.authentication_success |
|
|
|
failure_handler: lexik_jwt_authentication.handler.authentication_failure |
|
|
|
api: |
|
|
|
pattern: ^/api/ |
|
|
|
stateless: true |
|
|
|
provider: app_user_provider |
|
|
|
jwt: ~ |
|
|
|
main: |
|
|
|
# json_login: |
|
|
|
# check_path: /auth # The name in routes.yaml is enough for mapping |
|
|
|
# username_path: email |
|
|
|
# password_path: password |
|
|
|
# success_handler: lexik_jwt_authentication.handler.authentication_success |
|
|
|
# failure_handler: lexik_jwt_authentication.handler.authentication_failure |
|
|
|
|
|
|
|
# Easy way to control access for large sections of your site |
|
|
|
# Note: Only the *first* access control that matches will be used |
|
|
|
|