次の方法で共有


AppBuilderExtension.AddMicrosoftIdentityWebApp Method

Definition

Adds a protected web app.

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

Parameters

app
Owin.IAppBuilder

Application builder.

tokenAcquirerFactory
OwinTokenAcquirerFactory

Token acquirer factory.

configureMicrosoftIdentityApplicationOptions
Action<MicrosoftIdentityApplicationOptions>

Configure Microsoft authentication options.

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

Update the OWIN options if you want to finesse the OpenIdConnect options.

configurationSection
String

Configuration section in which to read the options.

Returns

Owin.IAppBuilder

The app builder to chain.

Applies to