FacebookAppBuilderExtensions.UseFacebookAuthentication 方法

定義

多載

UseFacebookAuthentication(IApplicationBuilder)
已淘汰.
已淘汰.

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

UseFacebookAuthentication(IApplicationBuilder, FacebookOptions)
已淘汰.
已淘汰.

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

UseFacebookAuthentication(IApplicationBuilder, FacebookOptions)

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

UseFacebookAuthentication(IApplicationBuilder)

警告

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

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

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

參數

app
IApplicationBuilder

IApplicationBuilder要加入處理常式的 。

傳回

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

屬性

適用於

UseFacebookAuthentication(IApplicationBuilder, FacebookOptions)

警告

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

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

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

參數

app
IApplicationBuilder

IApplicationBuilder要加入處理常式的 。

options
FacebookOptions

FacebookOptions 指定處理常式的選項。

傳回

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

屬性

適用於

UseFacebookAuthentication(IApplicationBuilder, FacebookOptions)

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

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

參數

app
IApplicationBuilder

IApplicationBuilder要加入中介軟體的 。

options
FacebookOptions

FacebookOptions 指定中介軟體的選項。

傳回

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

適用於