CreateMyCredentialsAsync #
Create the current user's credentials for the specified strategy.
Arguments #
public async Task<JObject> CreateMyCredentialsAsync(
string strategy,
JObject credentials);
Argument | Type | Description |
---|---|---|
strategy | string | Strategy to use |
credentials | JObject | JObject representing the credentials |
Return #
A JObject representing the new credentials.
Usage #
await kuzzle.Auth.LoginAsync(
"local",
JObject.Parse("{username: 'foo', password: 'bar'}"));
await kuzzle.Auth.CreateMyCredentialsAsync(
"other",
JObject.Parse("{username: 'foo', password: 'bar'}"));
Edit this page on Github(opens new window)