AppBuilderExtension.AddMicrosoftIdentityWebApp Método

Definição

Adiciona uma aplicação web protegida.

public static Owin.IAppBuilder AddMicrosoftIdentityWebApp(this Owin.IAppBuilder app, Microsoft.Identity.Web.OWIN.OwinTokenAcquirerFactory tokenAcquirerFactory, Action<Microsoft.Identity.Abstractions.MicrosoftIdentityApplicationOptions>? configureMicrosoftIdentityApplicationOptions = default, Action<Microsoft.Owin.Security.OpenIdConnect.OpenIdConnectAuthenticationOptions>? updateOptions = default, string configurationSection = "AzureAd");
static member AddMicrosoftIdentityWebApp : Owin.IAppBuilder * Microsoft.Identity.Web.OWIN.OwinTokenAcquirerFactory * Action<Microsoft.Identity.Abstractions.MicrosoftIdentityApplicationOptions> * Action<Microsoft.Owin.Security.OpenIdConnect.OpenIdConnectAuthenticationOptions> * string -> Owin.IAppBuilder
<Extension()>
Public Function AddMicrosoftIdentityWebApp (app As IAppBuilder, tokenAcquirerFactory As OwinTokenAcquirerFactory, Optional configureMicrosoftIdentityApplicationOptions As Action(Of MicrosoftIdentityApplicationOptions) = Nothing, Optional updateOptions As Action(Of OpenIdConnectAuthenticationOptions) = Nothing, Optional configurationSection As String = "AzureAd") As IAppBuilder

Parâmetros

app
Owin.IAppBuilder

Construtor de aplicações.

tokenAcquirerFactory
OwinTokenAcquirerFactory

Fábrica de adquirentes de tokens.

configureMicrosoftIdentityApplicationOptions
Action<MicrosoftIdentityApplicationOptions>

Configure as opções de autenticação da Microsoft.

updateOptions
Action<Microsoft.Owin.Security.OpenIdConnect.OpenIdConnectAuthenticationOptions>

Atualiza as opções do OWIN se quiseres aperfeiçoar as opções do OpenIdConnect.

configurationSection
String

Secção de configuração para ler as opções.

Devoluções

Owin.IAppBuilder

O construtor de aplicações para encadear.

Aplica-se a