LocalAuthStrategy<User> class Null safety

Inheritance

Constructors

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

Properties

allowBasic bool
final
forceBasic bool
final
hashCode int
The hash code for this object. [...]
read-only, inherited
invalidMessage String
read / write
passwordField String
read / write
realm String
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
usernameField String
read / write
verifier LocalAuthVerifier<User>
read / write

Methods

authenticate(RequestContext req, ResponseContext res, [AngelAuthOptions? options]) Future<User?>
Authenticates or rejects an incoming user.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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