OAuthExtensions.AddOAuth Метод

Определение

Перегрузки

AddOAuth(AuthenticationBuilder, String, Action<OAuthOptions>)

Добавляет проверку подлинности на основе OAuth 2.0 к AuthenticationBuilder использованию указанной схемы проверки подлинности.

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

Добавляет проверку подлинности на основе OAuth 2.0 к AuthenticationBuilder использованию указанной схемы проверки подлинности.

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

Добавляет проверку подлинности на основе OAuth 2.0 к AuthenticationBuilder использованию указанной схемы проверки подлинности.

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

Добавляет проверку подлинности на основе OAuth 2.0 к AuthenticationBuilder использованию указанной схемы проверки подлинности.

AddOAuth(AuthenticationBuilder, String, Action<OAuthOptions>)

Добавляет проверку подлинности на основе OAuth 2.0 к AuthenticationBuilder использованию указанной схемы проверки подлинности.

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

Параметры

authenticationScheme
String

Схема проверки подлинности.

configureOptions
Action<OAuthOptions>

Делегат для настройки OAuthOptions.

Возвращаемое значение

Ссылка на после builder завершения операции.

Применяется к

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

Добавляет проверку подлинности на основе OAuth 2.0 к AuthenticationBuilder использованию указанной схемы проверки подлинности.

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

Параметры

authenticationScheme
String

Схема проверки подлинности.

displayName
String

Отображаемое имя обработчика проверки подлинности.

configureOptions
Action<OAuthOptions>

Делегат для настройки OAuthOptions.

Возвращаемое значение

Ссылка на после builder завершения операции.

Применяется к

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

Добавляет проверку подлинности на основе OAuth 2.0 к AuthenticationBuilder использованию указанной схемы проверки подлинности.

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

Параметры типа

TOptions
THandler

Параметры

authenticationScheme
String

Схема проверки подлинности.

configureOptions
Action<TOptions>

Делегат для настройки параметров обработчика.

Возвращаемое значение

Ссылка на после builder завершения операции.

Применяется к

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

Добавляет проверку подлинности на основе OAuth 2.0 к AuthenticationBuilder использованию указанной схемы проверки подлинности.

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

Параметры типа

TOptions
THandler

Параметры

authenticationScheme
String

Схема проверки подлинности.

displayName
String

Отображаемое имя обработчика проверки подлинности.

configureOptions
Action<TOptions>

Делегат для настройки параметров обработчика.

Возвращаемое значение

Ссылка на после builder завершения операции.

Применяется к