【发布时间】:2017-09-30 20:55:32
【问题描述】:
我为单点登录设计了一个身份服务器。我在不同的域中冲洗了我的客户端应用程序。请看看这个客户
new Client
{
Enabled = true,
ClientName = "Super UI",
ClientId = "Super",
Flow = Flows.Implicit,
RequireConsent = false,
RequireSignOutPrompt =false,
RedirectUris = new List<string>
{
"http://localhost:3001/callback",
"http://localhost:3002/callback",
"http://localhost:3003/callback"
},
AllowedCorsOrigins = new List<string>
{
"http://localhost:3001/",
"http://localhost:3002/",
"http://localhost:3003/"
},
PostLogoutRedirectUris = new List<string>
{
"http://localhost:3001/logout",
"http://localhost:3002/logout",
"http://localhost:3003/logout"
},
AllowedScopes = new List<string>
{
"openid",
"profile",
"email",
"SuperUI"
}
}
但它失败了,我无法使用此设置登录
如果我使用单个 URL,那么它可以工作
new Client
{
Enabled = true,
ClientName = "Super UI",
ClientId = "Super",
Flow = Flows.Implicit,
RequireConsent = false,
RequireSignOutPrompt =false,
RedirectUris = new List<string>
{
"http://localhost:3001/callback"
},
AllowedCorsOrigins = new List<string>
{
"http://localhost:3001/"
},
PostLogoutRedirectUris = new List<string>
{
"http://localhost:3001/logout"
},
AllowedScopes = new List<string>
{
"openid",
"profile",
"email",
"SuperUI"
}
}
我搜了很多博客和搜索引擎,对此没有明确的概念,Github中有一个问题https://github.com/IdentityServer/IdentityServer3/issues/3340
请在这方面帮助我。
【问题讨论】:
标签: c# authentication single-sign-on identityserver3