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 kuidstrategy
: 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>"
}
}
Edit this page on Github (opens new window)