摘要:
1. NUget 引入: System.DirectoryServices System.DirectoryServices.AccountManagement 2 登陆种情况:有登陆界面和无登陆界面 2.1. 有登陆界面,有表单,输入用户名密码,后台拿到用户名密码,找AD 服务器验证 protec 阅读全文
随笔档案-2020年08月
.Netcore 2.2 和3.1 的模板
2020-08-07 10:24 by qgbo, 165 阅读, 收藏, 编辑
摘要:
WebHost.CreateDefaultBuilder(args) .UseStartup<Startup>(); public static IWebHostBuilder CreateDefaultBuilder(string[] args) { var builder = new WebHo 阅读全文
.Netcore Windows Authentication
2020-08-04 16:39 by qgbo, 455 阅读, 收藏, 编辑
摘要:
.Netcore 默认Server 是Kestrel, 这是跨平台的,与Windows 认证无关。 新建.Netcore Webapi项目,选择Windows 认证,这样的项目,https 能直接打开的。 在Controller上加 [Authorize] 部署到IIS 上,需要配置develop 阅读全文