Core
API v2.x
2

getAllCredentialFields #

Retrieves the list of fields accepted by authentication strategies.


Query Syntax #

HTTP #

Copied to clipboard!
URL: http://kuzzle:7512/credentials/_fields
Method: GET

Other protocols #

Copied to clipboard!
{
  "controller": "security",
  "action": "getAllCredentialFields"
}

Response #

Returns an object with a property per authentication strategy, pointing to an array of accepted field names.

Copied to clipboard!
{
  "status": 200,
  "error": null,
  "action": "getAllCredentialFields",
  "controller": "security",
  "result": {
    "local": ["username", "password"],
    "facebook": []
  }
}