Share via


AppCredentials Class

Definition

Base abstraction for AAD credentials for auth and caching.

public abstract class AppCredentials : Microsoft.Rest.ServiceClientCredentials
type AppCredentials = class
    inherit ServiceClientCredentials
Public MustInherit Class AppCredentials
Inherits ServiceClientCredentials
Inheritance
Microsoft.Rest.ServiceClientCredentials
AppCredentials
Derived

Constructors

AppCredentials(String, HttpClient, ILogger, String)

Initializes a new instance of the AppCredentials class.

AppCredentials(String, HttpClient, ILogger)

Initializes a new instance of the AppCredentials class.

Properties

AuthTenant

Gets or sets the channel auth token tenant for this credential.

ChannelAuthTenant

Gets or sets tenant to be used for channel authentication.

CustomHttpClient

Gets or sets the channel auth token tenant for this credential.

DefaultChannelAuthTenant

Gets DefaultChannelAuthTenant.

Logger

Gets or sets the channel auth token tenant for this credential.

MicrosoftAppId

Gets or sets the Microsoft app ID for this credential.

OAuthEndpoint

Gets the OAuth endpoint to use.

OAuthScope

Gets the OAuth scope to use.

ToChannelFromBotLoginUrlTemplate

Gets ToChannelFromBotLoginUrlTemplate.

ToChannelFromBotOAuthScope

Gets ToChannelFromBotOAuthScope.

ValidateAuthority

Gets a value indicating whether to validate the Authority.

Methods

BuildIAuthenticator()

Builds the lazy IAuthenticator to be used for token acquisition.

GetTokenAsync(Boolean)

Gets an OAuth access token.

IsTrustedServiceUrl(String)
Obsolete.

Checks if the service url is for a trusted host or not.

ProcessHttpRequestAsync(HttpRequestMessage, CancellationToken)

Apply the credentials to the HTTP request.

TrustServiceUrl(String, DateTime)
Obsolete.

Adds the host of service url to MicrosoftAppCredentials trusted hosts.

TrustServiceUrl(String)
Obsolete.

Adds the host of service url to MicrosoftAppCredentials trusted hosts.

Applies to