共用方式為


OpenIdConnectAppBuilderExtensions.UseOpenIdConnectAuthentication 方法

定義

多載

UseOpenIdConnectAuthentication(IApplicationBuilder)
已淘汰.
已淘汰.

UseOpenIdConnectAuthentication 已過時。 使用 AddAuthentication () 設定 OpenIdConnect 驗證。ConfigureServices 中的 AddOpenIdConnect。 如需更多詳細資料,請參閱 https://go.microsoft.com/fwlink/?linkid=845470 \(英文\)。

UseOpenIdConnectAuthentication(IApplicationBuilder, OpenIdConnectOptions)
已淘汰.
已淘汰.

UseOpenIdConnectAuthentication 已過時。 使用 AddAuthentication () 設定 OpenIdConnect 驗證。ConfigureServices 中的 AddOpenIdConnect。 如需更多詳細資料,請參閱 https://go.microsoft.com/fwlink/?linkid=845470 \(英文\)。

UseOpenIdConnectAuthentication(IApplicationBuilder, OpenIdConnectOptions)

OpenIdConnectMiddleware 中介軟體新增至指定的 IApplicationBuilder ,以啟用 OpenID Connect 驗證功能。

UseOpenIdConnectAuthentication(IApplicationBuilder)

來源:
OpenIdConnectAppBuilderExtensions.cs
來源:
OpenIdConnectAppBuilderExtensions.cs

警告

UseOpenIdConnectAuthentication is obsolete. Configure OpenIdConnect authentication with AddAuthentication().AddOpenIdConnect in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.

UseOpenIdConnectAuthentication 已過時。 使用 AddAuthentication () 設定 OpenIdConnect 驗證。ConfigureServices 中的 AddOpenIdConnect。 如需更多詳細資料,請參閱 https://go.microsoft.com/fwlink/?linkid=845470 \(英文\)。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseOpenIdConnectAuthentication(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseOpenIdConnectAuthentication (this Microsoft.AspNetCore.Builder.IApplicationBuilder app);
[System.Obsolete("See https://go.microsoft.com/fwlink/?linkid=845470", true)]
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseOpenIdConnectAuthentication (this Microsoft.AspNetCore.Builder.IApplicationBuilder app);
[System.Obsolete("UseOpenIdConnectAuthentication is obsolete. Configure OpenIdConnect authentication with AddAuthentication().AddOpenIdConnect in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.", true)]
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseOpenIdConnectAuthentication (this Microsoft.AspNetCore.Builder.IApplicationBuilder app);
static member UseOpenIdConnectAuthentication : Microsoft.AspNetCore.Builder.IApplicationBuilder -> Microsoft.AspNetCore.Builder.IApplicationBuilder
[<System.Obsolete("See https://go.microsoft.com/fwlink/?linkid=845470", true)>]
static member UseOpenIdConnectAuthentication : Microsoft.AspNetCore.Builder.IApplicationBuilder -> Microsoft.AspNetCore.Builder.IApplicationBuilder
[<System.Obsolete("UseOpenIdConnectAuthentication is obsolete. Configure OpenIdConnect authentication with AddAuthentication().AddOpenIdConnect in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.", true)>]
static member UseOpenIdConnectAuthentication : Microsoft.AspNetCore.Builder.IApplicationBuilder -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseOpenIdConnectAuthentication (app As IApplicationBuilder) As IApplicationBuilder

參數

app
IApplicationBuilder

IApplicationBuilder要加入處理常式的 。

傳回

完成作業之後,這個執行個體的參考。

屬性

適用於

UseOpenIdConnectAuthentication(IApplicationBuilder, OpenIdConnectOptions)

來源:
OpenIdConnectAppBuilderExtensions.cs
來源:
OpenIdConnectAppBuilderExtensions.cs

警告

UseOpenIdConnectAuthentication is obsolete. Configure OpenIdConnect authentication with AddAuthentication().AddOpenIdConnect in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.

UseOpenIdConnectAuthentication 已過時。 使用 AddAuthentication () 設定 OpenIdConnect 驗證。ConfigureServices 中的 AddOpenIdConnect。 如需更多詳細資料,請參閱 https://go.microsoft.com/fwlink/?linkid=845470 \(英文\)。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseOpenIdConnectAuthentication(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app, Microsoft::AspNetCore::Authentication::OpenIdConnect::OpenIdConnectOptions ^ options);
[System.Obsolete("See https://go.microsoft.com/fwlink/?linkid=845470", true)]
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseOpenIdConnectAuthentication (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectOptions options);
[System.Obsolete("UseOpenIdConnectAuthentication is obsolete. Configure OpenIdConnect authentication with AddAuthentication().AddOpenIdConnect in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.", true)]
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseOpenIdConnectAuthentication (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectOptions options);
[<System.Obsolete("See https://go.microsoft.com/fwlink/?linkid=845470", true)>]
static member UseOpenIdConnectAuthentication : Microsoft.AspNetCore.Builder.IApplicationBuilder * Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectOptions -> Microsoft.AspNetCore.Builder.IApplicationBuilder
[<System.Obsolete("UseOpenIdConnectAuthentication is obsolete. Configure OpenIdConnect authentication with AddAuthentication().AddOpenIdConnect in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.", true)>]
static member UseOpenIdConnectAuthentication : Microsoft.AspNetCore.Builder.IApplicationBuilder * Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectOptions -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseOpenIdConnectAuthentication (app As IApplicationBuilder, options As OpenIdConnectOptions) As IApplicationBuilder

參數

app
IApplicationBuilder

IApplicationBuilder要加入處理常式的 。

options
OpenIdConnectOptions

OpenIdConnectOptions 指定處理常式的選項。

傳回

完成作業之後,這個執行個體的參考。

屬性

適用於

UseOpenIdConnectAuthentication(IApplicationBuilder, OpenIdConnectOptions)

OpenIdConnectMiddleware 中介軟體新增至指定的 IApplicationBuilder ,以啟用 OpenID Connect 驗證功能。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseOpenIdConnectAuthentication(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app, Microsoft::AspNetCore::Builder::OpenIdConnectOptions ^ options);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseOpenIdConnectAuthentication (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Builder.OpenIdConnectOptions options);
static member UseOpenIdConnectAuthentication : Microsoft.AspNetCore.Builder.IApplicationBuilder * Microsoft.AspNetCore.Builder.OpenIdConnectOptions -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseOpenIdConnectAuthentication (app As IApplicationBuilder, options As OpenIdConnectOptions) As IApplicationBuilder

參數

app
IApplicationBuilder

IApplicationBuilder要加入中介軟體的 。

options
OpenIdConnectOptions

OpenIdConnectOptions 指定中介軟體的選項。

傳回

完成作業之後,這個執行個體的參考。

適用於