OAuthExtensions.AddOAuth 方法

定义

重载

AddOAuth(AuthenticationBuilder, String, Action<OAuthOptions>)

使用指定的身份验证方案将 AuthenticationBuilder 基于 OAuth 2.0 的身份验证添加到 。

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

使用指定的身份验证方案将 AuthenticationBuilder 基于 OAuth 2.0 的身份验证添加到 。

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

使用指定的身份验证方案将 AuthenticationBuilder 基于 OAuth 2.0 的身份验证添加到 。

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

使用指定的身份验证方案将 AuthenticationBuilder 基于 OAuth 2.0 的身份验证添加到 。

AddOAuth(AuthenticationBuilder, String, Action<OAuthOptions>)

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

使用指定的身份验证方案将 AuthenticationBuilder 基于 OAuth 2.0 的身份验证添加到 。

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>)

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

使用指定的身份验证方案将 AuthenticationBuilder 基于 OAuth 2.0 的身份验证添加到 。

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>)

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

使用指定的身份验证方案将 AuthenticationBuilder 基于 OAuth 2.0 的身份验证添加到 。

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>)

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

使用指定的身份验证方案将 AuthenticationBuilder 基于 OAuth 2.0 的身份验证添加到 。

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 的引用。

适用于