身份服务器窗口和用户名密码



我有Identity Server 3设置并使用Windows身份验证,我具有身份服务器实例和Windows auth在两个单独的项目中,我将自定义索赔存储在数据库中,因此我添加了这些索赔对于代币,以便不必使Web API使用Windows,并且必须在每个请求上检查用户索赔,因为我有一个使用该服务的单独的JavaScript客户端。伟大的所有作品。

如何将其他验证选项添加到身份服务器实例其他类型的客户端?对于域中的Windows用户,我想使用Windows auth和域以外的用户,我希望能够使用用户名密码显示登录Windows按钮。

我对如何设置这一行有点困惑:

factory.UserService = new Registration<IUserService>(typeof(ExternalRegistrationUserService));
            var options = new IdentityServerOptions
            {
                SigningCertificate = Certificate.Load(),
                Factory = factory,
                AuthenticationOptions = new AuthenticationOptions
                {
                    EnableLocalLogin = false,
                    IdentityProviders = ConfigureIdentityProviders,
                }
            };

我是否需要要求多个身份服务器或一个实例支持Muliple AuthenticationOptions?

您不需要多个身份服务器。您是否使用IdentityServer 3或4?IdentityServer4在文档中有一个页面,解释了如何使用Weblistener或Kestrel进行操作:http://docs.identityserver.io/en/release/topics/windows.html

最新更新