SDK
SDK C# v2.x
2

CreateMyCredentialsAsync #

Create the current user's credentials for the specified strategy.

Arguments #

public async Task<JObject> CreateMyCredentialsAsync(
      string strategy,
      JObject credentials);
ArgumentTypeDescription
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'}"));