Versiones comparadas

Clave

  • Se ha añadido esta línea.
  • Se ha eliminado esta línea.
  • El formato se ha cambiado.

...

Entradas

Parámetro

Tipo de dato

Descripción

nickname

string

Nombre de usuario otorgado por Zona Franca

password

string

Contraseña del usuario, encriptada mediante el método AES-128-CBC.

flag

integer

Se debe enviar un campo tipo bandera que indique si el usuario está conectado mediante webservices(1).

Salidas

Atributo

Tipo de dato

Descripción

token

string

Token de acceso requerido para consumir los servicios de la API

token_type

string

Tipo de token generado, que en este caso es "bearer"

Petición:

Bloque de código
bashCopy codePOST /api/auth/login HTTP/1.1
Host: gorgeous-dust-0seusmuxapkp.vapor-farm-b1.com
Content-Type: application/json

{
  "nickname":"technisupport",
  "password":"ciphertext."
}

...

{
"status": {
"code": 200,
"message": "Procesado con éxito",
"last_access": "2023-04-25 09:29:03",
"token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczovL2dvcmdlb3VzLWR1c3QtMHNldXNtdXhhcGtwLnZhcG9yLWZhcm0tYjEuY29tL2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNjgyNDMzMDA5LCJleHAiOjE2ODI0NDAyMDksIm5iZiI6MTY4MjQzMzAwOSwianRpIjoiWlZJYnQxazFNUHBNMHFENSIsInN1YiI6IjM0IiwicHJ2IjoiMjNiZDVjODk0OWY2MDBhZGIzOWU3MDFjNDAwODcyZGI3YTU5NzZmNyJ9.6MfPZlxdlY7ShhSsRzAzVAAWYVS7N19R6pQu0CAMN4A",
"expires_at": "en 1 hora",
"date_expires": "2023-04-25 11:30:09",
"token_type": "bearer",
"user": {
"id": 34,
"email": "kettyruiz@gmail.comtechnisupport@technisupport",
"nickname": "ctictechnisupport",
"nickname_nit": "ctic@9010024870technisupport@9010024370",
"token": null,
"token_login": null,
"token_email": null,
"token_time": null,
"session_id": "8d14b623bf291312846072ea75c30d97",
"confirmation_code": "bjHYT61jnmOEHHGBfzq2x7ibNjGPlDFz0etmwEZ8ugWTmcwUOThGOqoqi6UFnM1tmY7xFGg1YEoz2Ce7ps9B2Ytxle4j2IAB4JS8Hcbk0YPC6PWtMmRctnI2SonBWeae7hoeHm8whGyeqJ2nuLmEnCu9OOMlad8NeWPOhyVjA8WcSfuAiaXWPR8PfvhvLBk674D8UPBNLBxfRr4opNbj5zbTU5nFyKqW0VvU20s0z18RSakRt43S3ADlev",
"last_logged_at": "2023-04-25 09:30:09",
"email_verified_at": null,
"confirmed": 1,
"terms_and_conditions": 1,
"change_password_first_time": 1,
"online": 1,
"status": 1,
"is_superadmin": 0,
"is_qualified_user": 1,
"session_limit": 0,
"all_notify": 0,
"is_commerce": 0,
"staff_status": 0,
"latitude": "11.0141443",
"longitude": "-74.8623978",
"remember_token": null,
"dependency_id": null,
"free_zone_temp": null,
"data_person": {
"id": 34,
"user_id": 34,
"name_person": "Fundación",
"lastname_person": "CTIC",
"username_efranco": null,
"type_identification": null,
"identification": null,
"email_dian_stamp": null,
"image_person": "https://ui-avatars.com/api/?name=Fundación+CTIC&bold=true&size=450",
"phone_1": null
},
"qualifiedUser_id": {
"qualified_id": 232,
"document_balance": "0",
"scale_balance": "1",
"collect": 4,
"name_qualified": "Fundación CTIC",
"nickname_qualified": "CTIC",
"freeZone_id": 6,
"name_freeZone": "Fundación CTIC",
"site": "http://zfb-u4.technisupport.co ",
"code_dian": 3895,
"code_dane": 3895,
"decimal_values_precision": "4"
},
"view_free_zone": {
"id": 6,
"shortName_freeZone": "CTIC",
"name_freeZone": "Fundación CTIC",
"url": "http://gorgeous-dust-0seusmuxapkp.vapor-farm-b1.com "
},
"license_user": "2024-01-08",
"user_rol": {
"id": 3,
"name_rol": "usuario_calificado",
"guard_name": "api",
}

}