LocalAuthStrategy<User> class

Inheritance

Constructors

LocalAuthStrategy(LocalAuthVerifier<User> verifier, {String usernameField = 'username', String passwordField = 'password', String invalidMessage = 'Please provide a valid username and password.', bool allowBasic = false, bool forceBasic = false, String realm = 'Authentication is required.'})

Properties

allowBasic bool
final
forceBasic bool
final
hashCode int
The hash code for this object.
no setterinherited
invalidMessage String
getter/setter pair
passwordField String
getter/setter pair
realm String
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
usernameField String
getter/setter pair
verifier LocalAuthVerifier<User>
getter/setter pair

Methods

authenticate(RequestContext req, ResponseContext res, [AngelAuthOptions? options]) Future<User?>
Authenticates or rejects an incoming user.
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