Core
API v2.x
2

getCredentials #

Gets a user's credential information for the specified authentication strategy.

The returned content depends on the authentication strategy, but it should never include sensitive information.


Query Syntax #

HTTP #

URL: http://kuzzle:7512/credentials/<strategy>/<_id>
Method: GET

Other protocols #

{
  "controller": "security",
  "action": "getCredentials",
  "strategy": "<strategy>",
  "_id": "<kuid>"
}

Arguments #

  • _id: user kuid
  • strategy: authentication strategy name

Response #

Returns credentials information (depend on the authentication strategy).

Example with the "local" authentication strategy: #


{
  "status": 200,
  "error": null,
  "action": "getCredentials",
  "controller": "security",
  "_id": "<kuid>",
  "result": {
    "username": "MyUser",
    "kuid": "<kuid>"
  }
}