【问题标题】:Is there any way to extend Identity server 4 Client table to add extra column?有没有办法扩展 Identity server 4 Client 表以​​添加额外的列?
【发布时间】:2020-03-16 03:32:43
【问题描述】:

实现身份服务器 4,并且必须在客户端表中添加额外的列。是否有可能扩展 Client 类以在表中添加列?

【问题讨论】:

  • @mackie 根据那个问题。这是不可能的:(。我正在寻找任何其他解决方案
  • 我的回答只是指出ClientProperties 存在,因此无需扩展模型。该框架不支持以任何其他方式扩展模型。这些通过IdentityServer4.Models.Client 类的Properties 属性公开。
  • @BalagurunathanMarimuthu IIdentityServerInteractionService.GetAuthorizationContextAsync(returnUrl) 是您需要的方法。获取将通过查询字符串传递给您的登录操作的 /connect/authorize url。要获得完整的客户端模型(包括这些属性),您需要将 ClientId 传递给 IClientStore.FindEnabledClientByIdAsync(id)

标签: c# asp.net asp.net-core identityserver4 openid-connect


【解决方案1】:

您是否尝试过构建一个继承自 IdentityServer 客户端类的新类?我想那会奏效! Inheritance

【讨论】:

  • 是的,试过但没有用。那么你有什么可行的例子吗?
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2019-05-06
  • 2023-03-14
  • 2019-03-08
  • 1970-01-01
  • 2021-06-24
  • 2020-04-09
相关资源
最近更新 更多