小编Bru*_*tos的帖子

IIdentityServerInteractionService 的 GetAuthorizationContextAsync(returnUrl) 在登录期间返回 null

我使用文档中的模板创建了一个 Identity 4 应用程序服务器。我定义数据库最初将填充 2 个标准用户。但是,当我尝试使用任何以前创建的用户登录时,页面会刷新并且没有任何反应。所以我调试了它,看起来这部分返回 null,而它应该返回用户数据。

代码: var context = await _interaction.GetAuthorizationContextAsync(returnUrl);

存在于

_IIdentityServerInteractionService 的交互依赖注入 returnUrl = "/grants";

版本

c# asp.net identity asp.net-core identityserver4

7
推荐指数
1
解决办法
6544
查看次数

标签 统计

asp.net ×1

asp.net-core ×1

c# ×1

identity ×1

identityserver4 ×1