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:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Authentication::AuthenticationBuilder ^ AddOpenIdConnect(Microsoft::AspNetCore::Authentication::AuthenticationBuilder ^ builder);
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

參數

傳回

AuthenticationBuilder

作業 builder 完成之後的參考。

適用於

AddOpenIdConnect(AuthenticationBuilder, Action<OpenIdConnectOptions>)

使用預設配置將 OpenId Connect 驗證新增至 AuthenticationBuilder 。 預設配置是由指定 AuthenticationScheme

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

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Authentication::AuthenticationBuilder ^ AddOpenIdConnect(Microsoft::AspNetCore::Authentication::AuthenticationBuilder ^ builder, Action<Microsoft::AspNetCore::Authentication::OpenIdConnect::OpenIdConnectOptions ^> ^ configureOptions);
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

傳回

AuthenticationBuilder

作業 builder 完成之後的參考。

適用於

AddOpenIdConnect(AuthenticationBuilder, String, Action<OpenIdConnectOptions>)

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

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

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Authentication::AuthenticationBuilder ^ AddOpenIdConnect(Microsoft::AspNetCore::Authentication::AuthenticationBuilder ^ builder, System::String ^ authenticationScheme, Action<Microsoft::AspNetCore::Authentication::OpenIdConnect::OpenIdConnectOptions ^> ^ configureOptions);
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

傳回

AuthenticationBuilder

作業 builder 完成之後的參考。

適用於

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

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

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

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Authentication::AuthenticationBuilder ^ AddOpenIdConnect(Microsoft::AspNetCore::Authentication::AuthenticationBuilder ^ builder, System::String ^ authenticationScheme, System::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

傳回

AuthenticationBuilder

作業 builder 完成之後的參考。

適用於