部署后身份服务器4无效的客户端错误

时间:2020-02-18 06:43:53

标签: .net-core identityserver4

这是我的客户

 new Client {
                        RequireConsent = true,
                        RequirePkce = true,
                        ClientId = "ibird.com",
                        ClientName = "ibird.com",
                        ClientSecrets = new List<Secret>
                        {
                            new Secret("madeupsecret".Sha256())
                        },
                        AllowedGrantTypes = GrantTypes.Code,
                        AllowedScopes =
                                {
                                    IdentityServerConstants.StandardScopes.OpenId,
                                    IdentityServerConstants.StandardScopes.Profile,
                                    "api.read"
                                },
                        RedirectUris = new List<string>()
                                    {"http://localhost:5000/signin-oidc"},
                        PostLogoutRedirectUris = {"http://localhost:5000/"},
                        AllowedCorsOrigins = {"http://localhost:5000"},
                        AllowAccessTokensViaBrowser = true,
                        AccessTokenLifetime = 3600
                    }

当我在本地主机上运行我的两个项目时,它工作正常,但是在部署了身份服务器应用程序然后将本地应用程序连接到已部署的应用程序后,它可以工作并建立连接,但是在尝试从外部或内部登录后登录给我 enter image description here

请记住,我的本地应用程序已与身份服务器应用程序连接,并通过Google登录或内部登录。在最终重定向到我的本地应用程序后,请给予例外, 还有人可以告诉我如何查看身份服务器4的日志文件所在的日志

0 个答案:

没有答案
相关问题