Core
API v2.x
2

hasCredentials #

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


Query Syntax #

HTTP #

Copied to clipboard!
URL: http://kuzzle:7512/credentials/<strategy>/<_id>/_exists
Method: GET

Other protocols #

Copied to clipboard!
{
  "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.

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