SDK
SDK C# v1.x
1

You are currently looking at the documentation of a previous version of Kuzzle. We strongly recommend that you use the latest version. You can also use the version selector in the top menu.

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'}"));