StaticFileAuthenticationSource class final
Authentication source backed by a JSON file.
The file may either be a token map directly or contain it under tokens:
{
"tokens": {
"secret": {"userId": "alice", "canCreateRooms": true},
"another-secret": "bob"
}
}
The file is reloaded when its modification time changes.
- Inheritance
-
- Object
- AuthenticationSource
- StaticFileAuthenticationSource
Constructors
Properties
Methods
-
authenticate(
AuthenticationRequest request) → Future< AuthenticatedUser?> -
override
-
close(
) → Future< void> -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited