Commit ea05ba11 authored by Mat's avatar Mat

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

url: 0.0.0.0:81/web/app_dev.php/API/login_check
body, raw:
{
	"username": "mat",
	"password": "1234"
}
method: POST
response:
{
    "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOj..."
}
parent 5b5c2bb6
......@@ -3,6 +3,9 @@ api2:
type: annotation
prefix: /API/v2
api_login_check:
path: /API/login_check
socket:
resource: "@SocketBundle/Controller/"
type: annotation
......
......@@ -24,6 +24,14 @@ security:
login:
pattern: ^/(login|register)$
anonymous: true
api_login:
pattern: ^/API/login
stateless: true
anonymous: true
json_login:
check_path: /API/login_check
success_handler: lexik_jwt_authentication.handler.authentication_success
failure_handler: lexik_jwt_authentication.handler.authentication_failure
dev:
pattern: ^/(_profiler|_wdt|css|images|js)/
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