asp.net-core - 如何在带有 Servicestack 的 .NET Core 中使用 Windows 身份验证登录
问题描述
在以前使用 ServiceStack 的应用程序中,我和我的团队一直在使用 .NET Framework 和包含的 AspNetWindowsAuthProvider。
切换到 .NET Core 后,我们发现包含的提供程序不再位于 ServiceStack.Core 中。
如何在 ServiceStack.Core 应用程序中使用 Windows 身份验证?
解决方案
ServiceStack doesn't have a built-in Windows Auth Provider for .NET Core, a potential solution is to use ASP.NET Core's Identity Auth with ServiceStack, a pre-configured solution is available from the mvcidentity .NET Core Project Template.
Then Configure Windows Authentication in the ASP.NET Core App which is used by the NetCoreIdentityAuthProvider to create an Authenticated ServiceStack Session from the Authenticated ASP.NET Core Identity.
推荐阅读
- javascript - 如果我们有极长的水平滚动页面,如何在最后一个元素的末尾添加边距/填充,即空间?
- reactjs - 反应错误边界和延迟计算
- r - 在 R 中拆分多个日期和时间变量并计算时间平均值
- java - 数据库修改时的 Firestore ExceptionInInitializerError
- mysql - 在 Tkinter GUI 中显示 MySql 数据的最佳方式
- c# - 如何获取 Windows 窗体使用的真实字体?
- csvhelper - CSV Helper 将科学记数法转换为 String 类型
- angular - Angular - 如何在不调用 getValue 的情况下更新函数中的 BehaviorSubject 存储值中的字段
- c++ - 从给定的种子在 C++ 中生成相同的随机数序列
- kubernetes - 为 Zalenium 启用 SSL/HTTPS