Commit ea05ba11 authored by Mat's avatar Mat

vérifie dans postman que la route login_check reçoit le token ->

body, raw:
	"username": "mat",
	"password": "1234"
method: POST
    "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOj..."
parent 5b5c2bb6
...@@ -3,6 +3,9 @@ api2: ...@@ -3,6 +3,9 @@ api2:
type: annotation type: annotation
prefix: /API/v2 prefix: /API/v2
path: /API/login_check
socket: socket:
resource: "@SocketBundle/Controller/" resource: "@SocketBundle/Controller/"
type: annotation type: annotation
...@@ -24,6 +24,14 @@ security: ...@@ -24,6 +24,14 @@ security:
login: login:
pattern: ^/(login|register)$ pattern: ^/(login|register)$
anonymous: true anonymous: true
pattern: ^/API/login
stateless: true
anonymous: true
check_path: /API/login_check
success_handler: lexik_jwt_authentication.handler.authentication_success
failure_handler: lexik_jwt_authentication.handler.authentication_failure
dev: dev:
pattern: ^/(_profiler|_wdt|css|images|js)/ pattern: ^/(_profiler|_wdt|css|images|js)/
security: false security: false
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment