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.

GetStrategiesAsync #

Get all authentication strategies registered in Kuzzle.

Arguments #

public async Task<JArray> GetStrategiesAsync();

Return #

A JArray representing the available authentication strategies.

Exceptions #

Throws a KuzzleException if there is an error. See how to handle error.

Usage #

try {
  await kuzzle.Auth.LoginAsync(
    "local",
    JObject.Parse("{username: 'foo', password: 'bar'}"));
  JArray strategies = await kuzzle.Auth.GetStrategiesAsync();
  Console.WriteLine(strategies.ToString(Formatting.None));
  /*
  [
    "local"
  ]
  */
} catch (KuzzleException e) {
  Console.WriteLine(e);
}