ResourceOwnerPasswordStrategy class

An AuthorizationStrategy that uses the Resource Owner Password Grant.

See also:

Implemented types

Constructors

ResourceOwnerPasswordStrategy(String username, String password)
Creates the ResourceOwnerPasswordStrategy.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
password String
The resource owner password.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
username String
The resource owner username.
final

Methods

execute(OAuthSettings oAuthSettings, Client client, CredentialsRefreshedCallback onCredentialsRefreshed) Future<Client>
Execute this AuthorizationStrategy and create an oauth2.Client that is authorized.
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