Langue

AppCredentials Classe

Définition

Abstraction de base pour les informations d’identification AAD pour l’authentification et la mise en cache.

public abstract class AppCredentials : Microsoft.Rest.ServiceClientCredentials
type AppCredentials = class
    inherit ServiceClientCredentials
Public MustInherit Class AppCredentials
Inherits ServiceClientCredentials
Héritage
Microsoft.Rest.ServiceClientCredentials
AppCredentials
Dérivé

Constructeurs

Nom Description
AppCredentials(String, HttpClient, ILogger, String)

Initialise une nouvelle instance de la classe AppCredentials.

AppCredentials(String, HttpClient, ILogger)

Initialise une nouvelle instance de la classe AppCredentials.

Propriétés

Nom Description
AuthTenant

Obtient ou définit le locataire du jeton d’authentification du canal pour ces informations d’identification.

ChannelAuthTenant

Obtient ou définit le locataire à utiliser pour l’authentification par canal.

CustomHttpClient

Obtient ou définit le locataire du jeton d’authentification du canal pour ces informations d’identification.

DefaultChannelAuthTenant

Obtient DefaultChannelAuthTenant.

Logger

Obtient ou définit le locataire du jeton d’authentification du canal pour ces informations d’identification.

MicrosoftAppId

Obtient ou définit l’ID d’application Microsoft pour ces informations d’identification.

OAuthEndpoint

Obtient le point de terminaison OAuth à utiliser.

OAuthScope

Obtient l’étendue OAuth à utiliser.

ToChannelFromBotLoginUrlTemplate

Obtient ToChannelFromBotLoginUrlTemplate.

ToChannelFromBotOAuthScope

Obtient ToChannelFromBotOAuthScope.

ValidateAuthority

Obtient une valeur indiquant s’il faut valider l’autorité.

Méthodes

Nom Description
BuildIAuthenticator()

Construit le paresseux IAuthenticator pour être utilisé pour l’acquisition de jetons.

GetTokenAsync(Boolean)

Obtient un jeton d’accès OAuth.

IsTrustedServiceUrl(String)
Obsolète.

Vérifie si l’URL du service est pour un hôte approuvé ou non.

ProcessHttpRequestAsync(HttpRequestMessage, CancellationToken)

Appliquez les informations d’identification à la requête HTTP.

TrustServiceUrl(String, DateTime)
Obsolète.

Ajoute l’URL hôte du service à MicrosoftAppCredentials des hôtes de confiance.

TrustServiceUrl(String)
Obsolète.

Ajoute l’URL hôte du service à MicrosoftAppCredentials des hôtes de confiance.

S’applique à