Methods
ClientCredentialsAsync()
Mints a token for the client itself, with no user behind it.
Parameters
handler HttpMessageHandler
required
What sends the request.
client (string Id, string Secret)
required
The OAuth client’s id and secret.
settings IReadOnlyDictionary<string, string>
required
cancellationToken CancellationToken
required
Cancels the call.
Returns
OAuthGrant
ExchangeAsync()
Redeems the code an approval page gave.
Parameters
handler HttpMessageHandler
required
What sends the request.
client (string Id, string Secret)
required
The OAuth client’s id and secret.
Where the page sent the code, or null for an app approved with no redirect.
The approval request’s PKCE verifier, if it sent one.
settings IReadOnlyDictionary<string, string>
required
The connection’s values, which pick a sandbox.
cancellationToken CancellationToken
required
Cancels the call.
Returns
OAuthGrant
RedeemAsync()
Redeems a refresh token at the manifest’s auth.token_url.
Parameters
handler HttpMessageHandler
required
What sends the request.
client (string Id, string Secret)
required
The OAuth client’s id and secret.
Where to send the request instead of the vendor.
settings IReadOnlyDictionary<string, string>
required
The connection’s values, which pick a sandbox.
cancellationToken CancellationToken
required
Returns
OAuthGrant
RevokeAsync()
Revokes a refresh token at the manifest’s auth.revoke_url (RFC 7009), which ends the grant behind it. Does nothing for a vendor that declares no revocation.
Parameters
handler HttpMessageHandler
required
What sends the request.
Whose revoke_url applies.
client (string Id, string Secret)
required
The OAuth client’s id and secret.
Where to send the request instead of the vendor.
settings IReadOnlyDictionary<string, string>
required
The connection’s values, which pick a sandbox.
cancellationToken CancellationToken
required
Cancels the call.
Returns
Task<bool>
Whether the manifest declares a revocation, which then succeeded.