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

使用指定的配置,將 OpenId Connect 驗證新增至 AuthenticationBuilder

OpenID Connect 是 OAuth 2.0 通訊協定之上的身分識別層。 它可讓用戶端要求和接收已驗證會話和終端使用者的相關資訊。

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

使用指定的配置,將 OpenId Connect 驗證新增至 AuthenticationBuilder

OpenID Connect 是 OAuth 2.0 通訊協定之上的身分識別層。 它可讓用戶端要求和接收已驗證會話和終端使用者的相關資訊。

AddOpenIdConnect(AuthenticationBuilder)

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

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

使用指定的配置,將 OpenId Connect 驗證新增至 AuthenticationBuilder

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

使用指定的配置,將 OpenId Connect 驗證新增至 AuthenticationBuilder

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 參考。

適用於