CookieAppBuilderExtensions 类

定义

将 Cookie 身份验证功能添加到 HTTP 应用程序管道的扩展方法。

public ref class CookieAppBuilderExtensions abstract sealed
public static class CookieAppBuilderExtensions
type CookieAppBuilderExtensions = class
Public Module CookieAppBuilderExtensions
继承
CookieAppBuilderExtensions

方法

UseCookieAuthentication(IApplicationBuilder)
已过时.
已过时.

UseCookieAuthentication 已过时。 使用 AddAuthentication () 配置 Cookie 身份验证。在 ConfigureServices 中添加Cookie。 有关详细信息,请参阅 https://go.microsoft.com/fwlink/?linkid=845470

UseCookieAuthentication(IApplicationBuilder, CookieAuthenticationOptions)
已过时.
已过时.

UseCookieAuthentication 已过时。 使用 AddAuthentication () 配置 Cookie 身份验证。在 ConfigureServices 中添加Cookie。 有关详细信息,请参阅 https://go.microsoft.com/fwlink/?linkid=845470

UseCookieAuthentication(IApplicationBuilder, CookieAuthenticationOptions)

CookieAuthenticationMiddleware 中间件添加到指定的 IApplicationBuilder,这将启用 Cookie 身份验证功能。

适用于