OAuthClient Class

Definition

An OAuth client class that implements IOAuthClient.

public class OAuthClient : Microsoft.Rest.ServiceClient<Microsoft.Bot.Connector.OAuthClient>, IDisposable, Microsoft.Bot.Connector.IOAuthClient
type OAuthClient = class
    inherit ServiceClient<OAuthClient>
    interface IOAuthClient
    interface IDisposable
Public Class OAuthClient
Inherits ServiceClient(Of OAuthClient)
Implements IDisposable, IOAuthClient
Inheritance
Microsoft.Rest.ServiceClient<OAuthClient>
OAuthClient
Implements

Constructors

Name Description
OAuthClient(DelegatingHandler[])

Initializes a new instance of the OAuthClient class.

OAuthClient(HttpClient, Boolean)

Initializes a new instance of the OAuthClient class.

OAuthClient(HttpClientHandler, DelegatingHandler[])

Initializes a new instance of the OAuthClient class.

OAuthClient(MicrosoftAppCredentials, Boolean, DelegatingHandler[])
OAuthClient(ServiceClientCredentials, DelegatingHandler[])

Initializes a new instance of the OAuthClient class.

OAuthClient(ServiceClientCredentials, HttpClient, Boolean)

Initializes a new instance of the OAuthClient class.

OAuthClient(ServiceClientCredentials, HttpClientHandler, DelegatingHandler[])

Initializes a new instance of the OAuthClient class.

OAuthClient(Uri, DelegatingHandler[])

Initializes a new instance of the OAuthClient class.

OAuthClient(Uri, HttpClientHandler, DelegatingHandler[])

Initializes a new instance of the OAuthClient class.

OAuthClient(Uri, MicrosoftAppCredentials, Boolean, DelegatingHandler[])
OAuthClient(Uri, ServiceClientCredentials, DelegatingHandler[])

Initializes a new instance of the OAuthClient class.

OAuthClient(Uri, ServiceClientCredentials, HttpClientHandler, DelegatingHandler[])

Initializes a new instance of the OAuthClient class.

OAuthClient(Uri, String, String, DelegatingHandler[])

Properties

Name Description
BaseUri

Gets or sets the base URI of the service.

BotSignIn

Gets the IBotSignIn.

Credentials

Gets subscription credentials which uniquely identify client subscription.

DeserializationSettings

Gets json deserialization settings.

OAuthApi
OAuthApiEx
SerializationSettings

Gets json serialization settings.

UserToken

Gets the IUserToken.

Methods

Name Description
ExchangeAsyncWithHttpMessagesAsync(String, String, String, TokenExchangeRequest, Dictionary<String,List<String>>, CancellationToken)

Exchange with HTTP message.

GetSignInResourceWithHttpMessagesAsync(String, String, String, String, Dictionary<String,List<String>>, CancellationToken)

Get sign-in resource with HTTP message.

Extension Methods

Name Description
ExchangeAsyncAsync(OAuthClient, String, String, String, TokenExchangeRequest, CancellationToken)

Exchange.

GetOAuthApiEx(IOAuthClient)
GetSignInResourceAsync(OAuthClient, String, String, String, String, CancellationToken)

Get sign-in resource with HTTP message.

Applies to