CookieAppBuilderExtensions 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将 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 身份验证功能。 |
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈