МФ
Size: a a a
МФ
МФ
MB
MV
ПГ
MV
ПГ
MV
MV
MV
MV
MV
ПГ
MV
AK
authentication_token:в routes.yaml
path: /authentication_token
methods: ['POST']
$response = $client->request("POST", '/authentication_token',security выглядит так
[
'json' =>
['email' => $email, 'password' => $password]
]);
return json_decode($response->getContent(), true)['token'] ?? '';
register:Вроде ничего необычного, тесты через постман работают, но в коде теста просто ловлю 401 при любых данных
pattern: ^/register
stateless: true
anonymous: true
main:
stateless: true
anonymous: true
provider: app_user_provider
json_login:
check_path: /authentication_token
username_path: email
password_path: password
success_handler: lexik_jwt_authentication.handler.authentication_success
failure_handler: lexik_jwt_authentication.handler.authentication_failure
guard:
authenticators:
- lexik_jwt_authentication.jwt_token_authenticator
AK
AK
VM