HttpBasicAuthSecurity class
HTTP basic authentication security that will read username and password from the Authorization header.
The identity provider will be used to validate the username/password combination and fetch the claims of the client.
See https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication
- Implemented types
Constructors
- HttpBasicAuthSecurity(IdentityProvider identityProvider)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- identityProvider → IdentityProvider
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
verify(
Map< String, String> headers, Secured secured) → Future<bool> -
Verify the client is allowed to access this resource.
Headers contains all HTTP headers, path and query parameters.
Secured contains the security metadata on the annotated method.
Implementations should extract the claims from headers and
verify the condition in secured.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited