DeleteMyCredentials #
Deletes the current user's credentials for the specified strategy. If the credentials that generated the current authentication token are removed, the user will remain logged in until they log out or until their session expires. After that they will no longer be able to log in with the deleted credentials.
Arguments #
public CompletableFuture<Void> deleteMyCredentials(final String strategy)
throws NotConnectedException, InternalException
Argument | Type | Description |
---|---|---|
strategy | String | Strategy to use |
Usage #
ConcurrentHashMap<String, Object> credentials = new ConcurrentHashMap<>();
credentials.put("username", "foo");
credentials.put("password", "bar");
ConcurrentHashMap<String, Object> response = kuzzle.getAuthController().login("local", credentials).get();
kuzzle.getAuthController().deleteMyCredentials("local").get();
Edit this page on Github(opens new window)