2022年6月30日

asp.net core cookie认证

摘要: asp.net core版本:5.0 客户端:Vue 首先我们看一下服务端代码,在startup类的ConfigureServices函数中添加cookie认证: services.AddAuthentication(CookieAuthenticationDefaults.Authenticati 阅读全文

posted @ 2022-06-30 16:22 itjeff 阅读(239) 评论(0) 推荐(0) 编辑

.net core使用官方CookieAuthentication身份验证

摘要: 注入: public IServiceProvider ConfigureServices(IServiceCollection services) { //services.AddJwtAuthorization(Configuration); var types = new[] { typeof 阅读全文

posted @ 2022-06-30 16:21 itjeff 阅读(111) 评论(0) 推荐(0) 编辑

导航