【发布时间】:2020-03-16 03:32:43
【问题描述】:
实现身份服务器 4,并且必须在客户端表中添加额外的列。是否有可能扩展 Client 类以在表中添加列?
【问题讨论】:
-
@mackie 根据那个问题。这是不可能的:(。我正在寻找任何其他解决方案
-
我的回答只是指出
ClientProperties存在,因此无需扩展模型。该框架不支持以任何其他方式扩展模型。这些通过IdentityServer4.Models.Client类的Properties属性公开。 -
@BalagurunathanMarimuthu
IIdentityServerInteractionService.GetAuthorizationContextAsync(returnUrl)是您需要的方法。获取将通过查询字符串传递给您的登录操作的/connect/authorizeurl。要获得完整的客户端模型(包括这些属性),您需要将ClientId传递给IClientStore.FindEnabledClientByIdAsync(id)
标签: c# asp.net asp.net-core identityserver4 openid-connect