GetStrategies #
Gets all authentication strategies registered in Kuzzle.
:::: tabs ::: tab Java
Arguments #
public CompletableFuture<ArrayList<String>> getStrategies()
throws NotConnectedException, InternalException
Return #
An ArrayList representing the available authentication strategies.
Usage #
Map<String, Object> credentials = new HashMap<>();
credentials.put("username", "foo");
credentials.put("password", "bar");
kuzzle.getAuthController().login("local", credentials).get();
ArrayList<String> result = kuzzle.getAuthController().getStrategies().get();
::: ::: Kotlin
Arguments #
fun getStrategies(): CompletableFuture<ArrayList<String>>
Return #
An ArrayList representing the available authentication strategies.
Usage #
kuzzle.authController.login("local", HashMap<String, Any?>().apply {
put("username", "foo")
put("password", "bar")
}).get()
val result: ArrayList<String> =
kuzzle.authController.getStrategies().get();
::: ::::
Edit this page on Github(opens new window)