IdentityServer4 RequireConsent true 挂起

IdentityServer4 RequireConsent true hangs

我按照 IdentityServerWithAspNetIdentity 教程设置了 IdentityServer4。 如果我在客户端设置中设置 RequireConsent = true,重定向到 url 挂起。 有什么建议吗?

    public static IEnumerable<Client> GetClients()
    { return new List<Client> {
            new Client
            {
                ClientId = "MyUx",
                ClientName = "MyUx MVC Client",
                AllowedGrantTypes = GrantTypes.HybridAndClientCredentials,
                RequireConsent = false,
                ClientSecrets= {new Secret("abcdef".Sha256()) },

                RedirectUris = { "http://localhost:5002/signin-oidc" },

                PostLogoutRedirectUris = {"http://localhost:5002"},

                AllowedScopes = {
                    IdentityServerConstants.StandardScopes.OpenId,
                    IdentityServerConstants.StandardScopes.Profile,

                    "custom.profile"                     
                },
                AllowOfflineAccess = true
            }
        };

} 感谢和问候

解决方案是仅在 RequireConsent = true 时添加同意页面 谢谢@leastprivilege