CompositeAuthenticator class
Tries several authenticators in order, returning the first Principal one produces.
If none authenticates the caller but at least one reported invalid
credentials (threw UnauthorizedException), that failure is propagated;
otherwise the caller is anonymous (null).
- Implemented types
Constructors
-
CompositeAuthenticator(List<
Authenticator> authenticators) -
Creates a composite over
authenticators.const
Properties
-
authenticators
→ List<
Authenticator> -
The authenticators to try, in order.
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(
HubRequest request) → Future< Principal?> -
Authenticates
request. See the class contract for the return/throw semantics.override -
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