【发布时间】:2017-10-10 05:23:10
【问题描述】:
愚蠢的问题...在下面显示的示例中将用户重定向到本地主机 即http://localhost:5002/signin-oidc
在我的作品中,我需要将其更改为 https://app.domain.com/signin-oidc?
http://docs.identityserver.io/en/release/quickstarts/6_aspnet_identity.html
new Client
{
ClientId = "mvc",
ClientName = "MVC Client",
AllowedGrantTypes = GrantTypes.HybridAndClientCredentials,
RequireConsent = false,
ClientSecrets =
{
new Secret("secret".Sha256())
},
RedirectUris = { "http://localhost:5002/signin-oidc" },
PostLogoutRedirectUris = { "http://localhost:5002/signout-callback-oidc" },
AllowedScopes =
{
IdentityServerConstants.StandardScopes.OpenId,
IdentityServerConstants.StandardScopes.Profile,
"api1"
},
AllowOfflineAccess = true
}
【问题讨论】:
-
是的,localhost 应该只在客户端是 Web 应用程序时用于测试。不要在生产中包含 localhost 重定向 uri。
标签: asp.net-core identityserver4 asp.net-core-2.0