AuthController class

Inheritance

Constructors

AuthController(Kuzzle kuzzle)

Properties

accessor String?
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
kuzzle Kuzzle
finalinherited
name String?
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

checkRights(Map<String, dynamic> requestPayload) Future<bool>
Checks if an API action can be executed by the current user.
checkToken(String? token) Future<Map<String, dynamic>>
Checks whether a given jwt token still represents a valid session in Kuzzle.
createMyCredentials(String strategy, Map<String, dynamic> credentials) Future<Map<String, dynamic>>
Create credentials of the specified strategy for the current user.
credentialsExist(String strategy) Future<bool>
Check the existence of the specified strategy's credentials for the current user.
deleteMyCredentials(String strategy) Future<Map<String, dynamic>>
Delete credentials of the specified strategy for the current user.
getCurrentUser() Future<KuzzleUser>
Fetches the current user.
getMyCredentials(String strategy) Future<Map<String, dynamic>>
Get credential information of the specified strategy for the current user.
getMyRights() Future<List<Map<String, dynamic>>>
Gets the rights array of the currently logged user
getStrategies() Future<List<String>>
Get all the strategies registered in Kuzzle by all auth plugins
login(String strategy, Map<String, dynamic> credentials, {String? expiresIn}) Future<String?>
Send login request to kuzzle with credentials
logout() Future<void>
Send logout request to kuzzle with jwt.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
updateMyCredentials(String strategy, Map<String, dynamic> credentials) Future<Map<String, dynamic>>
Update credentials of the specified strategy for the current user.
updateSelf(Map<String, dynamic> body) Future<KuzzleUser>
Fetches the current user.
validateMyCredentials(String strategy, Map<String, dynamic> credentials) Future<bool>
Validate credentials of the specified strategy for the current user.

Operators

operator ==(Object other) bool
The equality operator.
inherited