AppBuilderExtension.AddMicrosoftIdentityWebApi Methode
Definitie
Belangrijk
Bepaalde informatie heeft betrekking op een voorlopige productversie die aanzienlijk kan worden gewijzigd voordat deze wordt uitgebracht. Microsoft biedt geen enkele expliciete of impliciete garanties met betrekking tot de informatie die hier wordt verstrekt.
Hiermee voegt u een beveiligde web-API toe.
public static Owin.IAppBuilder AddMicrosoftIdentityWebApi(this Owin.IAppBuilder app, Microsoft.Identity.Web.OWIN.OwinTokenAcquirerFactory tokenAcquirerFactory, Action<Microsoft.Identity.Abstractions.MicrosoftIdentityApplicationOptions>? configureMicrosoftIdentityApplicationOptions = default, Action<Microsoft.Owin.Security.OAuth.OAuthBearerAuthenticationOptions>? updateOptions = default, string configurationSection = "AzureAd");
static member AddMicrosoftIdentityWebApi : Owin.IAppBuilder * Microsoft.Identity.Web.OWIN.OwinTokenAcquirerFactory * Action<Microsoft.Identity.Abstractions.MicrosoftIdentityApplicationOptions> * Action<Microsoft.Owin.Security.OAuth.OAuthBearerAuthenticationOptions> * string -> Owin.IAppBuilder
<Extension()>
Public Function AddMicrosoftIdentityWebApi (app As IAppBuilder, tokenAcquirerFactory As OwinTokenAcquirerFactory, Optional configureMicrosoftIdentityApplicationOptions As Action(Of MicrosoftIdentityApplicationOptions) = Nothing, Optional updateOptions As Action(Of OAuthBearerAuthenticationOptions) = Nothing, Optional configurationSection As String = "AzureAd") As IAppBuilder
Parameters
- app
- Owin.IAppBuilder
Opbouwfunctie voor toepassingen.
- tokenAcquirerFactory
- OwinTokenAcquirerFactory
Token acquirer factory.
- configureMicrosoftIdentityApplicationOptions
- Action<MicrosoftIdentityApplicationOptions>
Configureer Microsoft verificatieopties.
- updateOptions
- Action<Microsoft.Owin.Security.OAuth.OAuthBearerAuthenticationOptions>
Werk de OWIN-opties bij als u de tokenvalidatie wilt verfijnen.
- configurationSection
- String
Configuratiesectie waarin u de opties kunt lezen.
Retouren
De app-ontwikkelaar die moet worden gekoppeld.