ResourceOwnerPasswordGrant class
Obtains credentials using a resource owner password grant.
This grant uses the resource owner's username and password to obtain credentials.
- Implemented types
Constructors
- ResourceOwnerPasswordGrant({required String username, required String password, CredentialsRefreshedCallback? onCredentialsRefreshed})
-
Obtains credentials using a resource owner password grant.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- onCredentialsRefreshed → CredentialsRefreshedCallback?
-
Callback to be invoked whenever the credentials are refreshed.
final
- password → String
-
Password used for obtaining credentials.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- username → String
-
Username used for obtaining credentials.
final
Methods
-
handle(
Uri authorizationEndpoint, String identifier, {String? secret, Client? httpClient, Iterable< String> ? scopes, bool basicAuth = true, String? delimiter, Map<String, dynamic> getParameters(MediaType? contentType, String body)?}) → Future<String> -
Obtains credentials from an authorization server.
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