gpt4 book ai didi

asp.net-core - 在 aspnet5-rc1 中禁用 NTLM/协商登录选项

转载 作者:行者123 更新时间:2023-12-02 02:12:57 24 4
gpt4 key购买 nike

自 RC1 发布以来,社交登录选项中出现了两种新的登录/身份验证方法:NTLMNegotiate

它们作为 SignInManager.GetExternalAuthenticationSchemes() 集合的一部分出现。

是否有推荐的方法可以全局禁用它们,或者从集合中过滤掉它们,而无需对其名称进行硬编码?

最佳答案

https://github.com/aspnet/IISIntegration/issues/25
app.UseIISPlatformHandler(选项=>
{
选项.AuthenticationDescriptions.Clear();
});

关于asp.net-core - 在 aspnet5-rc1 中禁用 NTLM/协商登录选项,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34054462/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com