Core
API v1.x
1

You are currently looking at the documentation of a previous version of Kuzzle. We strongly recommend that you use the latest version. You can also use the version selector in the top menu.

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>"
  }
}