TestAuthenticator class

An Authenticator for tests: tokenFor hands out a token for any Principal, and the client's GisilaTestClient.as uses it. Other requests go to fallback, so real tokens keep working alongside.

Inheritance

Constructors

TestAuthenticator({Authenticator fallback = const NullAuthenticator()})

Properties

fallback → Authenticator
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

authenticate(Request request) → Future<Principal?>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
tokenFor(Principal principal) → String
A bearer token that authenticates as principal.
toString() → String
A string representation of this object.
inherited

Operators

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