https://api.khipu.com/
Éste metodo conecta a la cuenta del usuario en Clave Única, el sitio de identidad digital ofrecido por el gobierno chileno, y retorna un token vinculado a esa cuenta que puede ser usado en operaciones futuras, incluyendo otros servicios que requieren autenticación Clave Única.
Identificación de usuario con acceso a la cuenta de Clave Única (RUN).
https://api.khipu.com/v1/cl/services/claveunica.cl/token
curl -i -X POST \
https://api.khipu.com/v1/cl/services/claveunica.cl/token \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Username": "11.111.111-1",
"Password": "wxyz1234!@#$"
}'
Operación exitosa. Retorna un objeto JSON con los datos solicitados en el campo Data
.
Unique identifier of the operation.
Operation status, "OK" meaning that the credentials were correct and the account link was generated.
If the authentication challenge was successful, it includes the link for the account.
This field can be used to display relevant information specific to the response, for instance indicating that the Data
field is incomplete.
Object with the error details, used when Status=ERROR
. If Status=OK
this field will be null. You can read a complete explanation of this object visiting this link Objeto con los detalles del error, utilizado cuando Status=ERROR
. Si Status=OK
este campo será nulo. Puede leer una explicación completa de este objeto visitando este enlace
Indica cómo tratar este código de error específico, en función del tipo de error.
{ "OperationId": "6baf6c19-e485-463b-ae24-a821b025c8a4", "Status": "OK", "Data": { "AccountLink": "dFyRCVYNM0aGb1LSR/0B8e+eSVr1Zf1xj9YHmMVoiZWk28XtWEyIxEbGXnr1EdvS+QBPzjweau7tbf5QlDv97IQ2jwfUB==" }, "AdditionalInformation": null, "Error": null, "LifeSpan": null }