MicrosoftAppCredentials Constructors

Definition

Overloads

MicrosoftAppCredentials(String, String)

Initializes a new instance of the MicrosoftAppCredentials class.

MicrosoftAppCredentials(String, String, HttpClient)

Initializes a new instance of the MicrosoftAppCredentials class.

MicrosoftAppCredentials(String, String, HttpClient, ILogger)

Initializes a new instance of the MicrosoftAppCredentials class.

MicrosoftAppCredentials(String, String, String, HttpClient)

Initializes a new instance of the MicrosoftAppCredentials class.

MicrosoftAppCredentials(String, String, HttpClient, ILogger, String)

Initializes a new instance of the MicrosoftAppCredentials class.

MicrosoftAppCredentials(String, String, String, HttpClient, ILogger)

Initializes a new instance of the MicrosoftAppCredentials class.

MicrosoftAppCredentials(String, String, String, HttpClient, ILogger, String)

Initializes a new instance of the MicrosoftAppCredentials class.

MicrosoftAppCredentials(String, String)

Initializes a new instance of the MicrosoftAppCredentials class.

public MicrosoftAppCredentials (string appId, string password);
new Microsoft.Bot.Connector.Authentication.MicrosoftAppCredentials : string * string -> Microsoft.Bot.Connector.Authentication.MicrosoftAppCredentials
Public Sub New (appId As String, password As String)

Parameters

appId
String

The Microsoft app ID.

password
String

The Microsoft app password.

Applies to

MicrosoftAppCredentials(String, String, HttpClient)

Initializes a new instance of the MicrosoftAppCredentials class.

public MicrosoftAppCredentials (string appId, string password, System.Net.Http.HttpClient customHttpClient);
new Microsoft.Bot.Connector.Authentication.MicrosoftAppCredentials : string * string * System.Net.Http.HttpClient -> Microsoft.Bot.Connector.Authentication.MicrosoftAppCredentials
Public Sub New (appId As String, password As String, customHttpClient As HttpClient)

Parameters

appId
String

The Microsoft app ID.

password
String

The Microsoft app password.

customHttpClient
HttpClient

Optional HttpClient to be used when acquiring tokens.

Applies to

MicrosoftAppCredentials(String, String, HttpClient, ILogger)

Initializes a new instance of the MicrosoftAppCredentials class.

public MicrosoftAppCredentials (string appId, string password, System.Net.Http.HttpClient customHttpClient, Microsoft.Extensions.Logging.ILogger logger);
new Microsoft.Bot.Connector.Authentication.MicrosoftAppCredentials : string * string * System.Net.Http.HttpClient * Microsoft.Extensions.Logging.ILogger -> Microsoft.Bot.Connector.Authentication.MicrosoftAppCredentials
Public Sub New (appId As String, password As String, customHttpClient As HttpClient, logger As ILogger)

Parameters

appId
String

The Microsoft app ID.

password
String

The Microsoft app password.

customHttpClient
HttpClient

Optional HttpClient to be used when acquiring tokens.

logger
ILogger

Optional ILogger to gather telemetry data while acquiring and managing credentials.

Applies to

MicrosoftAppCredentials(String, String, String, HttpClient)

Initializes a new instance of the MicrosoftAppCredentials class.

public MicrosoftAppCredentials (string appId, string password, string channelAuthTenant, System.Net.Http.HttpClient customHttpClient);
new Microsoft.Bot.Connector.Authentication.MicrosoftAppCredentials : string * string * string * System.Net.Http.HttpClient -> Microsoft.Bot.Connector.Authentication.MicrosoftAppCredentials
Public Sub New (appId As String, password As String, channelAuthTenant As String, customHttpClient As HttpClient)

Parameters

appId
String

The Microsoft app ID.

password
String

The Microsoft app password.

channelAuthTenant
String

Optional. The oauth token tenant.

customHttpClient
HttpClient

Optional HttpClient to be used when acquiring tokens.

Applies to

MicrosoftAppCredentials(String, String, HttpClient, ILogger, String)

Initializes a new instance of the MicrosoftAppCredentials class.

public MicrosoftAppCredentials (string appId, string password, System.Net.Http.HttpClient customHttpClient, Microsoft.Extensions.Logging.ILogger logger, string oAuthScope);
new Microsoft.Bot.Connector.Authentication.MicrosoftAppCredentials : string * string * System.Net.Http.HttpClient * Microsoft.Extensions.Logging.ILogger * string -> Microsoft.Bot.Connector.Authentication.MicrosoftAppCredentials
Public Sub New (appId As String, password As String, customHttpClient As HttpClient, logger As ILogger, oAuthScope As String)

Parameters

appId
String

The Microsoft app ID.

password
String

The Microsoft app password.

customHttpClient
HttpClient

Optional HttpClient to be used when acquiring tokens.

logger
ILogger

Optional ILogger to gather telemetry data while acquiring and managing credentials.

oAuthScope
String

The scope for the token.

Applies to

MicrosoftAppCredentials(String, String, String, HttpClient, ILogger)

Initializes a new instance of the MicrosoftAppCredentials class.

public MicrosoftAppCredentials (string appId, string password, string channelAuthTenant, System.Net.Http.HttpClient customHttpClient, Microsoft.Extensions.Logging.ILogger logger = default);
new Microsoft.Bot.Connector.Authentication.MicrosoftAppCredentials : string * string * string * System.Net.Http.HttpClient * Microsoft.Extensions.Logging.ILogger -> Microsoft.Bot.Connector.Authentication.MicrosoftAppCredentials
Public Sub New (appId As String, password As String, channelAuthTenant As String, customHttpClient As HttpClient, Optional logger As ILogger = Nothing)

Parameters

appId
String

The Microsoft app ID.

password
String

The Microsoft app password.

channelAuthTenant
String

Optional. The oauth token tenant.

customHttpClient
HttpClient

Optional HttpClient to be used when acquiring tokens.

logger
ILogger

Optional ILogger to gather telemetry data while acquiring and managing credentials.

Applies to

MicrosoftAppCredentials(String, String, String, HttpClient, ILogger, String)

Initializes a new instance of the MicrosoftAppCredentials class.

public MicrosoftAppCredentials (string appId, string password, string channelAuthTenant, System.Net.Http.HttpClient customHttpClient, Microsoft.Extensions.Logging.ILogger logger = default, string oAuthScope = default);
new Microsoft.Bot.Connector.Authentication.MicrosoftAppCredentials : string * string * string * System.Net.Http.HttpClient * Microsoft.Extensions.Logging.ILogger * string -> Microsoft.Bot.Connector.Authentication.MicrosoftAppCredentials
Public Sub New (appId As String, password As String, channelAuthTenant As String, customHttpClient As HttpClient, Optional logger As ILogger = Nothing, Optional oAuthScope As String = Nothing)

Parameters

appId
String

The Microsoft app ID.

password
String

The Microsoft app password.

channelAuthTenant
String

Optional. The oauth token tenant.

customHttpClient
HttpClient

Optional HttpClient to be used when acquiring tokens.

logger
ILogger

Optional ILogger to gather telemetry data while acquiring and managing credentials.

oAuthScope
String

The scope for the token.

Applies to