Core
API v1.x
1

credentialsExist #

Checks that the current authenticated user has credentials for the specified authentication strategy.


Query Syntax #

HTTP #

Copied to clipboard!
URL: http://kuzzle:7512/credentials/<strategy>/_me/_exists
Method: GET
Headers: Authorization: "Bearer <authentication token>"

Other protocols #

Copied to clipboard!
{
  "controller": "auth",
  "action": "credentialsExist",
  "strategy": "<strategy>",
  "jwt": "<authentication token>"
}

Arguments #

  • jwt: valid authentication token (for the HTTP protocol, the token is to be passed to the Authorization header instead)
  • strategy: name of the authentication strategy to be tested

Response #

Result is a boolean telling whether credentials exist for the provided authentication strategy:

Copied to clipboard!
{
  "status": 200,
  "error": null,
  "action": "credentialsExist",
  "controller": "auth",
  "result": true
}