MsalAppCredentials 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
| MsalAppCredentials(IConfidentialClientApplication, String, String, String, Boolean, ILogger) |
Initializes a new instance of the MsalAppCredentials class. |
| MsalAppCredentials(String, X509Certificate2, String, String, Boolean, ILogger) |
Initializes a new instance of the MsalAppCredentials class. |
| MsalAppCredentials(String, String, String, String, Boolean, ILogger) |
Initializes a new instance of the MsalAppCredentials class. |
MsalAppCredentials(IConfidentialClientApplication, String, String, String, Boolean, ILogger)
Initializes a new instance of the MsalAppCredentials class.
public MsalAppCredentials (Microsoft.Identity.Client.IConfidentialClientApplication clientApplication, string appId, string authority = default, string scope = default, bool validateAuthority = true, Microsoft.Extensions.Logging.ILogger logger = default);
new Microsoft.Bot.Connector.Authentication.MsalAppCredentials : Microsoft.Identity.Client.IConfidentialClientApplication * string * string * string * bool * Microsoft.Extensions.Logging.ILogger -> Microsoft.Bot.Connector.Authentication.MsalAppCredentials
Public Sub New (clientApplication As IConfidentialClientApplication, appId As String, Optional authority As String = Nothing, Optional scope As String = Nothing, Optional validateAuthority As Boolean = true, Optional logger As ILogger = Nothing)
Parameters
- clientApplication
- IConfidentialClientApplication
The client application to use to acquire tokens.
- appId
- String
The Microsoft application Id.
- authority
- String
Optional authority.
- scope
- String
Optional custom scope.
- validateAuthority
- Boolean
Whether to validate the authority.
Applies to
MsalAppCredentials(String, X509Certificate2, String, String, Boolean, ILogger)
Initializes a new instance of the MsalAppCredentials class.
public MsalAppCredentials (string appId, System.Security.Cryptography.X509Certificates.X509Certificate2 certificate, string authority = default, string scope = default, bool validateAuthority = true, Microsoft.Extensions.Logging.ILogger logger = default);
new Microsoft.Bot.Connector.Authentication.MsalAppCredentials : string * System.Security.Cryptography.X509Certificates.X509Certificate2 * string * string * bool * Microsoft.Extensions.Logging.ILogger -> Microsoft.Bot.Connector.Authentication.MsalAppCredentials
Public Sub New (appId As String, certificate As X509Certificate2, Optional authority As String = Nothing, Optional scope As String = Nothing, Optional validateAuthority As Boolean = true, Optional logger As ILogger = Nothing)
Parameters
- appId
- String
The Microsoft application id.
- certificate
- X509Certificate2
The certificate to use for authentication.
- authority
- String
Optional authority.
- scope
- String
Optional custom scope.
- validateAuthority
- Boolean
Optional switch for whether to validate the authority.
Applies to
MsalAppCredentials(String, String, String, String, Boolean, ILogger)
Initializes a new instance of the MsalAppCredentials class.
public MsalAppCredentials (string appId, string appPassword, string authority = default, string scope = default, bool validateAuthority = true, Microsoft.Extensions.Logging.ILogger logger = default);
new Microsoft.Bot.Connector.Authentication.MsalAppCredentials : string * string * string * string * bool * Microsoft.Extensions.Logging.ILogger -> Microsoft.Bot.Connector.Authentication.MsalAppCredentials
Public Sub New (appId As String, appPassword As String, Optional authority As String = Nothing, Optional scope As String = Nothing, Optional validateAuthority As Boolean = true, Optional logger As ILogger = Nothing)
Parameters
- appId
- String
The Microsoft application id.
- appPassword
- String
The Microsoft application password.
- authority
- String
Optional authority.
- scope
- String
Optional custom scope.
- validateAuthority
- Boolean
Whether to validate the authority.