Improve this Doc View Source

Interface IOAuthCodeReceiver

This is the interface for the OAuth code receiver

Namespace:Dapplo.HttpExtensions.OAuth
Assembly:Dapplo.HttpExtensions.dll
Syntax
public interface IOAuthCodeReceiver

Methods

| Improve this Doc View Source

ReceiveCodeAsync(AuthorizeModes, ICodeReceiverSettings, CancellationToken)

The actual code receiving code

Declaration
Task<IDictionary<string, string>> ReceiveCodeAsync(AuthorizeModes authorizeMode, ICodeReceiverSettings codeReceiverSettings, CancellationToken cancellationToken = null)
Parameters
Type Name Description
AuthorizeModes authorizeMode

AuthorizeModes will tell you for what mode you were called

ICodeReceiverSettings codeReceiverSettings

ICodeReceiverSettings with the settings for the code receiver

System.Threading.CancellationToken cancellationToken

CancellationToken

Returns
Type Description
System.Threading.Tasks.Task<System.Collections.Generic.IDictionary<System.String, System.String>>

Dictionary with the returned key-values