OpenIdConnectExtensions.AddOpenIdConnect 方法

定义

重载

AddOpenIdConnect(AuthenticationBuilder)

使用默认方案将 OpenId Connect 身份验证添加到 AuthenticationBuilder 。 默认方案由 AuthenticationScheme指定。

OpenID Connect 是 OAuth 2.0 协议之上的标识层。 它允许客户端请求和接收有关经过身份验证的会话和最终用户的信息。

AddOpenIdConnect(AuthenticationBuilder, Action<OpenIdConnectOptions>)

使用默认方案将 OpenId Connect 身份验证添加到 AuthenticationBuilder 。 默认方案由 AuthenticationScheme指定。

OpenID Connect 是 OAuth 2.0 协议之上的标识层。 它允许客户端请求和接收有关经过身份验证的会话和最终用户的信息。

AddOpenIdConnect(AuthenticationBuilder, String, Action<OpenIdConnectOptions>)

使用指定方案将 AuthenticationBuilder OpenId Connect 身份验证添加到 。

OpenID Connect 是 OAuth 2.0 协议之上的标识层。 它允许客户端请求和接收有关经过身份验证的会话和最终用户的信息。

AddOpenIdConnect(AuthenticationBuilder, String, String, Action<OpenIdConnectOptions>)

使用指定方案将 AuthenticationBuilder OpenId Connect 身份验证添加到 。

OpenID Connect 是 OAuth 2.0 协议之上的标识层。 它允许客户端请求和接收有关经过身份验证的会话和最终用户的信息。

AddOpenIdConnect(AuthenticationBuilder)

Source:
OpenIdConnectExtensions.cs
Source:
OpenIdConnectExtensions.cs
Source:
OpenIdConnectExtensions.cs
Source:
OpenIdConnectExtensions.cs
Source:
OpenIdConnectExtensions.cs
Source:
OpenIdConnectExtensions.cs
Source:
OpenIdConnectExtensions.cs
Source:
OpenIdConnectExtensions.cs
Source:
OpenIdConnectExtensions.cs

使用默认方案将 OpenId Connect 身份验证添加到 AuthenticationBuilder 。 默认方案由 AuthenticationScheme指定。

OpenID Connect 是 OAuth 2.0 协议之上的标识层。 它允许客户端请求和接收有关经过身份验证的会话和最终用户的信息。

public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddOpenIdConnect (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder);
static member AddOpenIdConnect : Microsoft.AspNetCore.Authentication.AuthenticationBuilder -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder
<Extension()>
Public Function AddOpenIdConnect (builder As AuthenticationBuilder) As AuthenticationBuilder

参数

返回

操作完成后对 builder 的引用。

适用于

AddOpenIdConnect(AuthenticationBuilder, Action<OpenIdConnectOptions>)

Source:
OpenIdConnectExtensions.cs
Source:
OpenIdConnectExtensions.cs
Source:
OpenIdConnectExtensions.cs
Source:
OpenIdConnectExtensions.cs
Source:
OpenIdConnectExtensions.cs
Source:
OpenIdConnectExtensions.cs
Source:
OpenIdConnectExtensions.cs
Source:
OpenIdConnectExtensions.cs
Source:
OpenIdConnectExtensions.cs

使用默认方案将 OpenId Connect 身份验证添加到 AuthenticationBuilder 。 默认方案由 AuthenticationScheme指定。

OpenID Connect 是 OAuth 2.0 协议之上的标识层。 它允许客户端请求和接收有关经过身份验证的会话和最终用户的信息。

public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddOpenIdConnect (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, Action<Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectOptions> configureOptions);
static member AddOpenIdConnect : Microsoft.AspNetCore.Authentication.AuthenticationBuilder * Action<Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectOptions> -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder
<Extension()>
Public Function AddOpenIdConnect (builder As AuthenticationBuilder, configureOptions As Action(Of OpenIdConnectOptions)) As AuthenticationBuilder

参数

configureOptions
Action<OpenIdConnectOptions>

用于配置 OpenIdConnectOptions的委托。

返回

操作完成后对 builder 的引用。

适用于

AddOpenIdConnect(AuthenticationBuilder, String, Action<OpenIdConnectOptions>)

Source:
OpenIdConnectExtensions.cs
Source:
OpenIdConnectExtensions.cs
Source:
OpenIdConnectExtensions.cs
Source:
OpenIdConnectExtensions.cs
Source:
OpenIdConnectExtensions.cs
Source:
OpenIdConnectExtensions.cs
Source:
OpenIdConnectExtensions.cs
Source:
OpenIdConnectExtensions.cs
Source:
OpenIdConnectExtensions.cs

使用指定方案将 AuthenticationBuilder OpenId Connect 身份验证添加到 。

OpenID Connect 是 OAuth 2.0 协议之上的标识层。 它允许客户端请求和接收有关经过身份验证的会话和最终用户的信息。

public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddOpenIdConnect (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, string authenticationScheme, Action<Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectOptions> configureOptions);
static member AddOpenIdConnect : Microsoft.AspNetCore.Authentication.AuthenticationBuilder * string * Action<Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectOptions> -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder
<Extension()>
Public Function AddOpenIdConnect (builder As AuthenticationBuilder, authenticationScheme As String, configureOptions As Action(Of OpenIdConnectOptions)) As AuthenticationBuilder

参数

authenticationScheme
String

身份验证方案。

configureOptions
Action<OpenIdConnectOptions>

用于配置 OpenIdConnectOptions的委托。

返回

操作完成后对 builder 的引用。

适用于

AddOpenIdConnect(AuthenticationBuilder, String, String, Action<OpenIdConnectOptions>)

Source:
OpenIdConnectExtensions.cs
Source:
OpenIdConnectExtensions.cs
Source:
OpenIdConnectExtensions.cs
Source:
OpenIdConnectExtensions.cs
Source:
OpenIdConnectExtensions.cs
Source:
OpenIdConnectExtensions.cs
Source:
OpenIdConnectExtensions.cs
Source:
OpenIdConnectExtensions.cs
Source:
OpenIdConnectExtensions.cs

使用指定方案将 AuthenticationBuilder OpenId Connect 身份验证添加到 。

OpenID Connect 是 OAuth 2.0 协议之上的标识层。 它允许客户端请求和接收有关经过身份验证的会话和最终用户的信息。

public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddOpenIdConnect (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, string authenticationScheme, string displayName, Action<Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectOptions> configureOptions);
public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddOpenIdConnect (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, string authenticationScheme, string? displayName, Action<Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectOptions> configureOptions);
static member AddOpenIdConnect : Microsoft.AspNetCore.Authentication.AuthenticationBuilder * string * string * Action<Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectOptions> -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder
<Extension()>
Public Function AddOpenIdConnect (builder As AuthenticationBuilder, authenticationScheme As String, displayName As String, configureOptions As Action(Of OpenIdConnectOptions)) As AuthenticationBuilder

参数

authenticationScheme
String

身份验证方案。

displayName
String

身份验证处理程序的显示名称。

configureOptions
Action<OpenIdConnectOptions>

用于配置 OpenIdConnectOptions的委托。

返回

操作完成后对 builder 的引用。

适用于