CustomGrantStrategy class

An AuthorizationStrategy that authorizes using a custom grant with a customized token field.

Implemented types

Constructors

CustomGrantStrategy(String grantName, Map<String, String> grantFields)
Creates the CustomGrantStrategy. [...]
const

Properties

grantFields Map<String, String>
The custom grant custom fields.
final
grantName String
The custom grant name. [...]
final
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

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 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