-1
愚蠢的問題...在下面將用戶重定向所示的例子爲localhost 即http://localhost:5002/signin-oidc可能RedirectUris在生產中使用localhost?
在我的生產將我需要改變這 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應用程序時的測試。不要在生產中包含本地主機重定向uris。 –