OAuthExtensions.AddOAuth Metoda
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Přetížení
| AddOAuth(AuthenticationBuilder, String, Action<OAuthOptions>) |
Přidá ověřování založené na OAuth 2.0 do AuthenticationBuilder zadaného schématu ověřování. |
| AddOAuth(AuthenticationBuilder, String, String, Action<OAuthOptions>) |
Přidá ověřování založené na OAuth 2.0 do AuthenticationBuilder zadaného schématu ověřování. |
| AddOAuth<TOptions,THandler>(AuthenticationBuilder, String, Action<TOptions>) |
Přidá ověřování založené na OAuth 2.0 do AuthenticationBuilder zadaného schématu ověřování. |
| AddOAuth<TOptions,THandler>(AuthenticationBuilder, String, String, Action<TOptions>) |
Přidá ověřování založené na OAuth 2.0 do AuthenticationBuilder zadaného schématu ověřování. |
AddOAuth(AuthenticationBuilder, String, Action<OAuthOptions>)
Přidá ověřování založené na OAuth 2.0 do AuthenticationBuilder zadaného schématu ověřování.
public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddOAuth (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, string authenticationScheme, Action<Microsoft.AspNetCore.Authentication.OAuth.OAuthOptions> configureOptions);
static member AddOAuth : Microsoft.AspNetCore.Authentication.AuthenticationBuilder * string * Action<Microsoft.AspNetCore.Authentication.OAuth.OAuthOptions> -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder
<Extension()>
Public Function AddOAuth (builder As AuthenticationBuilder, authenticationScheme As String, configureOptions As Action(Of OAuthOptions)) As AuthenticationBuilder
Parametry
- builder
- AuthenticationBuilder
Hodnota AuthenticationBuilder
- authenticationScheme
- String
Schéma ověřování.
- configureOptions
- Action<OAuthOptions>
Delegát pro konfiguraci OAuthOptions.
Návraty
Odkaz na builder po dokončení operace.
Platí pro
AddOAuth(AuthenticationBuilder, String, String, Action<OAuthOptions>)
Přidá ověřování založené na OAuth 2.0 do AuthenticationBuilder zadaného schématu ověřování.
public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddOAuth (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, string authenticationScheme, string displayName, Action<Microsoft.AspNetCore.Authentication.OAuth.OAuthOptions> configureOptions);
static member AddOAuth : Microsoft.AspNetCore.Authentication.AuthenticationBuilder * string * string * Action<Microsoft.AspNetCore.Authentication.OAuth.OAuthOptions> -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder
<Extension()>
Public Function AddOAuth (builder As AuthenticationBuilder, authenticationScheme As String, displayName As String, configureOptions As Action(Of OAuthOptions)) As AuthenticationBuilder
Parametry
- builder
- AuthenticationBuilder
Hodnota AuthenticationBuilder
- authenticationScheme
- String
Schéma ověřování.
- displayName
- String
Zobrazovaný název obslužné rutiny ověřování
- configureOptions
- Action<OAuthOptions>
Delegát pro konfiguraci OAuthOptions.
Návraty
Odkaz na builder po dokončení operace.
Platí pro
AddOAuth<TOptions,THandler>(AuthenticationBuilder, String, Action<TOptions>)
Přidá ověřování založené na OAuth 2.0 do AuthenticationBuilder zadaného schématu ověřování.
public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddOAuth<TOptions,THandler> (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, string authenticationScheme, Action<TOptions> configureOptions) where TOptions : Microsoft.AspNetCore.Authentication.OAuth.OAuthOptions, new() where THandler : Microsoft.AspNetCore.Authentication.OAuth.OAuthHandler<TOptions>;
static member AddOAuth : Microsoft.AspNetCore.Authentication.AuthenticationBuilder * string * Action<'Options (requires 'Options :> Microsoft.AspNetCore.Authentication.OAuth.OAuthOptions and 'Options : (new : unit -> 'Options))> -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder (requires 'Options :> Microsoft.AspNetCore.Authentication.OAuth.OAuthOptions and 'Options : (new : unit -> 'Options) and 'Handler :> Microsoft.AspNetCore.Authentication.OAuth.OAuthHandler<'Options>)
<Extension()>
Public Function AddOAuth(Of TOptions As {OAuthOptionsNew}, THandler As {OAuthOptionsNew}) (builder As AuthenticationBuilder, authenticationScheme As String, configureOptions As Action(Of TOptions)) As AuthenticationBuilder
Parametry typu
- TOptions
- THandler
Parametry
- builder
- AuthenticationBuilder
Hodnota AuthenticationBuilder
- authenticationScheme
- String
Schéma ověřování.
- configureOptions
- Action<TOptions>
Delegát, který nakonfiguruje konkrétní možnosti obslužné rutiny.
Návraty
Odkaz na builder po dokončení operace.
Platí pro
AddOAuth<TOptions,THandler>(AuthenticationBuilder, String, String, Action<TOptions>)
Přidá ověřování založené na OAuth 2.0 do AuthenticationBuilder zadaného schématu ověřování.
public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddOAuth<TOptions,THandler> (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, string authenticationScheme, string displayName, Action<TOptions> configureOptions) where TOptions : Microsoft.AspNetCore.Authentication.OAuth.OAuthOptions, new() where THandler : Microsoft.AspNetCore.Authentication.OAuth.OAuthHandler<TOptions>;
static member AddOAuth : Microsoft.AspNetCore.Authentication.AuthenticationBuilder * string * string * Action<'Options (requires 'Options :> Microsoft.AspNetCore.Authentication.OAuth.OAuthOptions and 'Options : (new : unit -> 'Options))> -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder (requires 'Options :> Microsoft.AspNetCore.Authentication.OAuth.OAuthOptions and 'Options : (new : unit -> 'Options) and 'Handler :> Microsoft.AspNetCore.Authentication.OAuth.OAuthHandler<'Options>)
<Extension()>
Public Function AddOAuth(Of TOptions As {OAuthOptionsNew}, THandler As {OAuthOptionsNew}) (builder As AuthenticationBuilder, authenticationScheme As String, displayName As String, configureOptions As Action(Of TOptions)) As AuthenticationBuilder
Parametry typu
- TOptions
- THandler
Parametry
- builder
- AuthenticationBuilder
Hodnota AuthenticationBuilder
- authenticationScheme
- String
Schéma ověřování.
- displayName
- String
Zobrazovaný název obslužné rutiny ověřování
- configureOptions
- Action<TOptions>
Delegát, který nakonfiguruje konkrétní možnosti obslužné rutiny.
Návraty
Odkaz na builder po dokončení operace.