MicrosoftGovernmentAppCredentials Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
MicrosoftGovernmentAppCredentials(String, String, HttpClient) |
Initializes a new instance of the MicrosoftGovernmentAppCredentials class. |
MicrosoftGovernmentAppCredentials(String, String, HttpClient, ILogger) |
Initializes a new instance of the MicrosoftGovernmentAppCredentials class. |
MicrosoftGovernmentAppCredentials(String, String, HttpClient, ILogger, String) |
Initializes a new instance of the MicrosoftGovernmentAppCredentials class. |
MicrosoftGovernmentAppCredentials(String, String, String, HttpClient, ILogger, String) |
Initializes a new instance of the MicrosoftGovernmentAppCredentials class. |
MicrosoftGovernmentAppCredentials(String, String, HttpClient)
Initializes a new instance of the MicrosoftGovernmentAppCredentials class.
public MicrosoftGovernmentAppCredentials (string appId, string password, System.Net.Http.HttpClient customHttpClient = default);
new Microsoft.Bot.Connector.Authentication.MicrosoftGovernmentAppCredentials : string * string * System.Net.Http.HttpClient -> Microsoft.Bot.Connector.Authentication.MicrosoftGovernmentAppCredentials
Public Sub New (appId As String, password As String, Optional customHttpClient As HttpClient = Nothing)
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
MicrosoftGovernmentAppCredentials(String, String, HttpClient, ILogger)
Initializes a new instance of the MicrosoftGovernmentAppCredentials class.
public MicrosoftGovernmentAppCredentials (string appId, string password, System.Net.Http.HttpClient customHttpClient, Microsoft.Extensions.Logging.ILogger logger);
new Microsoft.Bot.Connector.Authentication.MicrosoftGovernmentAppCredentials : string * string * System.Net.Http.HttpClient * Microsoft.Extensions.Logging.ILogger -> Microsoft.Bot.Connector.Authentication.MicrosoftGovernmentAppCredentials
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.
Applies to
MicrosoftGovernmentAppCredentials(String, String, HttpClient, ILogger, String)
Initializes a new instance of the MicrosoftGovernmentAppCredentials class.
public MicrosoftGovernmentAppCredentials (string appId, string password, System.Net.Http.HttpClient customHttpClient, Microsoft.Extensions.Logging.ILogger logger, string oAuthScope = default);
new Microsoft.Bot.Connector.Authentication.MicrosoftGovernmentAppCredentials : string * string * System.Net.Http.HttpClient * Microsoft.Extensions.Logging.ILogger * string -> Microsoft.Bot.Connector.Authentication.MicrosoftGovernmentAppCredentials
Public Sub New (appId As String, password As String, customHttpClient As HttpClient, logger As ILogger, Optional oAuthScope As String = Nothing)
Parameters
- appId
- String
The Microsoft app ID.
- password
- String
The Microsoft app password.
- customHttpClient
- HttpClient
Optional HttpClient to be used when acquiring tokens.
- oAuthScope
- String
The scope for the token (defaults to ToChannelFromBotOAuthScope if null).
Applies to
MicrosoftGovernmentAppCredentials(String, String, String, HttpClient, ILogger, String)
Initializes a new instance of the MicrosoftGovernmentAppCredentials class.
public MicrosoftGovernmentAppCredentials (string appId, string password, string tenantId, System.Net.Http.HttpClient customHttpClient, Microsoft.Extensions.Logging.ILogger logger, string oAuthScope = default);
new Microsoft.Bot.Connector.Authentication.MicrosoftGovernmentAppCredentials : string * string * string * System.Net.Http.HttpClient * Microsoft.Extensions.Logging.ILogger * string -> Microsoft.Bot.Connector.Authentication.MicrosoftGovernmentAppCredentials
Public Sub New (appId As String, password As String, tenantId As String, customHttpClient As HttpClient, logger As ILogger, Optional oAuthScope As String = Nothing)
Parameters
- appId
- String
The Microsoft app ID.
- password
- String
The Microsoft app password.
- tenantId
- String
Tenant ID of the Azure AD tenant where the bot is created.
- customHttpClient
- HttpClient
Optional HttpClient to be used when acquiring tokens.
- oAuthScope
- String
The scope for the token (defaults to ToChannelFromBotOAuthScope if null).