Rota de login para encaminhar a autenticação ao Keycloak.
Requisição
Parâmetros Bodyapplication/json
{
"username": "{{$internet.email}}",
"password": "{{$internet.password}}"
}
Códigos de solicitação
curl --location --request POST '/auth/login' \
--header 'Content-Type: application/json' \
--data-raw '{
"username": "{{$internet.email}}",
"password": "{{$internet.password}}"
}'
Respostas
application/json {
"person": {
"id": "272bcb33-9eda-44d9-9dc6-53551ca23ace",
"first_name": "Adryan",
"last_name": "Alencar",
"email": "adryan.alencar@bancoboreal.com.br",
"phone_number": "11933571791",
"tax_id": "08733905630",
"birth_date": "2001-10-26",
"address": null,
"created_at": "2024-11-16T03:14:33.801896Z",
"updated_at": "2024-11-16T03:14:33.801909Z",
"public_url": null
},
"access_token": "eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJwbVpIUFg0SkFobjFLVTJINVB1ell3TUxYR2FrSnhvbTRSQlBFaFR3OW5FIn0...",
"expires_in": 300,
"refresh_expires_in": 1800,
"refresh_token": "eyJhbGciOiJIUzUxMiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI1MTQ0YThmOS1iNjExLTQ5NGEtODRkMy1lODU0YzZlN2ExZGIifQ...",
"token_type": "Bearer",
"not-before-policy": 0,
"session_state": "89cf8d73-d512-48a4-8d83-ff501f428459",
"scope": "email profile"
}
Modificado em 2025-01-17 18:02:40