【发布时间】:2019-04-12 05:12:09
【问题描述】:
我正在尝试使用 IdentityServer4,使用混合流程来实现授权服务器。 假设网址是:auth.company.com
为了验证用户身份,该公司使用简单的 .NET MVC 登录/密码表单。 网址:client.company.com/login.html
我的问题是:如何将身份验证系统插入 IdentityServer4?
我试过添加这个:
Startup.cs / ConfigureServices()
services.AddIdentityServer(SetupIdentityServer)
private static void SetupIdentityServer(IdentityServerOptions options)
{
options.UserInteraction.LoginUrl = @"client.company.com/login.html";
options.UserInteraction.LoginReturnUrlParameter = "referrer";
}
但它导致认证服务器和认证服务器之间的重定向错误太多 谢谢
【问题讨论】:
标签: c# authentication openid identityserver4 openid-connect