Compartir a través de


OAuthExtensions.AddOAuth Método

Definición

Sobrecargas

AddOAuth(AuthenticationBuilder, String, Action<OAuthOptions>)

Agrega la autenticación basada en OAuth 2.0 al AuthenticationBuilder uso del esquema de autenticación especificado.

AddOAuth(AuthenticationBuilder, String, String, Action<OAuthOptions>)

Agrega la autenticación basada en OAuth 2.0 al AuthenticationBuilder uso del esquema de autenticación especificado.

AddOAuth<TOptions,THandler>(AuthenticationBuilder, String, Action<TOptions>)

Agrega la autenticación basada en OAuth 2.0 al AuthenticationBuilder uso del esquema de autenticación especificado.

AddOAuth<TOptions,THandler>(AuthenticationBuilder, String, String, Action<TOptions>)

Agrega la autenticación basada en OAuth 2.0 al AuthenticationBuilder uso del esquema de autenticación especificado.

AddOAuth(AuthenticationBuilder, String, Action<OAuthOptions>)

Source:
OAuthExtensions.cs
Source:
OAuthExtensions.cs
Source:
OAuthExtensions.cs

Agrega la autenticación basada en OAuth 2.0 al AuthenticationBuilder uso del esquema de autenticación especificado.

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

Parámetros

authenticationScheme
String

Esquema de autenticación.

configureOptions
Action<OAuthOptions>

Delegado para configurar OAuthOptions.

Devoluciones

Referencia a builder una vez completada la operación.

Se aplica a

AddOAuth(AuthenticationBuilder, String, String, Action<OAuthOptions>)

Source:
OAuthExtensions.cs
Source:
OAuthExtensions.cs
Source:
OAuthExtensions.cs

Agrega la autenticación basada en OAuth 2.0 al AuthenticationBuilder uso del esquema de autenticación especificado.

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

Parámetros

authenticationScheme
String

Esquema de autenticación.

displayName
String

Nombre para mostrar del controlador de autenticación.

configureOptions
Action<OAuthOptions>

Delegado para configurar OAuthOptions.

Devoluciones

Referencia a builder una vez completada la operación.

Se aplica a

AddOAuth<TOptions,THandler>(AuthenticationBuilder, String, Action<TOptions>)

Source:
OAuthExtensions.cs
Source:
OAuthExtensions.cs
Source:
OAuthExtensions.cs

Agrega la autenticación basada en OAuth 2.0 al AuthenticationBuilder uso del esquema de autenticación especificado.

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

Parámetros de tipo

TOptions
THandler

Parámetros

authenticationScheme
String

Esquema de autenticación.

configureOptions
Action<TOptions>

Delegado para configurar las opciones específicas del controlador.

Devoluciones

Referencia a builder una vez completada la operación.

Se aplica a

AddOAuth<TOptions,THandler>(AuthenticationBuilder, String, String, Action<TOptions>)

Source:
OAuthExtensions.cs
Source:
OAuthExtensions.cs
Source:
OAuthExtensions.cs

Agrega la autenticación basada en OAuth 2.0 al AuthenticationBuilder uso del esquema de autenticación especificado.

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

Parámetros de tipo

TOptions
THandler

Parámetros

authenticationScheme
String

Esquema de autenticación.

displayName
String

Nombre para mostrar del controlador de autenticación.

configureOptions
Action<TOptions>

Delegado para configurar las opciones específicas del controlador.

Devoluciones

Referencia a builder una vez completada la operación.

Se aplica a