execute method
Future<Client>
execute(
- OAuthSettings oAuthSettings,
- Client client,
- CredentialsRefreshedCallback onCredentialsRefreshed
override
Execute this AuthorizationStrategy and create an oauth2.Client
that
is authorized.
Implementation
@override
Future<oauth2.Client> execute(
OAuthSettings oAuthSettings,
http.Client client,
oauth2.CredentialsRefreshedCallback onCredentialsRefreshed,
) {
return Future.value(
buildOAuth2ClientFromCredentials(
credentials,
oAuthSettings: oAuthSettings,
httpClient: client,
onCredentialsRefreshed: onCredentialsRefreshed,
),
);
}