IdentityServer4要求发送真实挂起

IdentityServer4要求发送真实挂起,identityserver4,Identityserver4,我在IdentityServerWithNetIdentity教程之后设置IdentityServer4。 如果我在客户端设置上设置requirencent=true,则重定向到url挂起。 有什么建议吗 public static IEnumerable<Client> GetClients() { return new List<Client> { new Client {

我在IdentityServerWithNetIdentity教程之后设置IdentityServer4。 如果我在客户端设置上设置requirencent=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
            }
        };
public静态IEnumerable GetClients()
{返回新列表{
新客户
{
ClientId=“MyUx”,
ClientName=“MyUx MVC客户端”,
AllowedGrantTypes=GrantTypes.HybridAndClientCredentials,
RequireSent=false,
ClientSecrets={newsecret(“abcdef.Sha256())},
重定向URI={”http://localhost:5002/signin-oidc“},
PostLogoutRedirectUris={”http://localhost:5002"},
允许范围={
IdentityServerConstants.StandardScopes.OpenId,
IdentityServerConstants.StandardScopes.Profile,
“自定义.配置文件”
},
AllowOfflineAccess=true
}
};
}
感谢并问候

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

你有同意页吗?那是我的错。抱歉,错过了:-/Hi@ozgurozkanakdemirci您的问题仍然没有解决,但一旦您已经解决了问题,它就没有意义了。我想你可以添加一个答案,说明解决方案只是添加一个同意页面,然后关闭问题。