Partager via


SignalRFunctionsHostBuilderExtensions.AddDefaultAuth Méthode

Définition

Ajoute la configuration des paramètres de validation de jeton de sécurité et la configuration de la connexion SignalR.

public static Microsoft.Azure.Functions.Extensions.DependencyInjection.IFunctionsHostBuilder AddDefaultAuth (this Microsoft.Azure.Functions.Extensions.DependencyInjection.IFunctionsHostBuilder builder, Action<Microsoft.IdentityModel.Tokens.TokenValidationParameters> configureTokenValidationParameters, Func<Microsoft.Azure.WebJobs.Extensions.SignalRService.SecurityTokenResult,Microsoft.AspNetCore.Http.HttpRequest,Microsoft.Azure.WebJobs.Extensions.SignalRService.SignalRConnectionDetail,Microsoft.Azure.WebJobs.Extensions.SignalRService.SignalRConnectionDetail> configurer = default);
static member AddDefaultAuth : Microsoft.Azure.Functions.Extensions.DependencyInjection.IFunctionsHostBuilder * Action<Microsoft.IdentityModel.Tokens.TokenValidationParameters> * Func<Microsoft.Azure.WebJobs.Extensions.SignalRService.SecurityTokenResult, Microsoft.AspNetCore.Http.HttpRequest, Microsoft.Azure.WebJobs.Extensions.SignalRService.SignalRConnectionDetail, Microsoft.Azure.WebJobs.Extensions.SignalRService.SignalRConnectionDetail> -> Microsoft.Azure.Functions.Extensions.DependencyInjection.IFunctionsHostBuilder
<Extension()>
Public Function AddDefaultAuth (builder As IFunctionsHostBuilder, configureTokenValidationParameters As Action(Of TokenValidationParameters), Optional configurer As Func(Of SecurityTokenResult, HttpRequest, SignalRConnectionDetail, SignalRConnectionDetail) = Nothing) As IFunctionsHostBuilder

Paramètres

builder
Microsoft.Azure.Functions.Extensions.DependencyInjection.IFunctionsHostBuilder

Générateur d’hôte de fonction Azure

configureTokenValidationParameters
Action<TokenValidationParameters>

Paramètres de validation de jeton pour valider le jeton de sécurité

configurer
Func<SecurityTokenResult,HttpRequest,SignalRConnectionDetail,SignalRConnectionDetail>

Configuration de la connexion SignalR à utiliser pour générer le jeton d’accès du service Azure SignalR

Retours

Microsoft.Azure.Functions.Extensions.DependencyInjection.IFunctionsHostBuilder

Microsoft.Azure.Functions.Extensions.DependencyInjection.IFunctionsHostBuilderGénérateur d’hôte de fonction Azure

S’applique à