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.

hasCredentials #

Checks if a user has credentials registered for the specified authentication strategy.


Query Syntax #

HTTP #

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

Other protocols #

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

Arguments #

  • _id: user kuid
  • strategy: authentication strategy

Response #

Returns a boolean telling whether the user can log in using the provided authentication strategy.

{
  "status": 200,
  "error": null,
  "action": "hasCredentials",
  "controller": "security",
  "_id": "<kuid>",
  "result": true
}