AuthValidator class

Instances that implement this type can be used by an Authorizer to determine authorization of a request.

When an Authorizer processes a Request, it invokes methods from this type to determine the Authorization from the Authorization header of the Request. AuthServer implements this interface.

Implemented by

Constructors

AuthValidator()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

fromBasicCredentials(AuthBasicCredentials usernameAndPassword) FutureOr<Authorization>
Returns an Authorization from basic credentials. [...]
fromBearerToken(String bearerToken, { List<AuthScope> scopesRequired }) FutureOr<Authorization>
Returns an Authorization from a bearer token. [...]
requirementsForStrategy(AuthStrategy strategy) List<APISecurityRequirement>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited