【问题标题】:IdentityServer4 Persisted Grant Storage. Invalid column name 'ConsumedTime'IdentityServer4 持久授权存储。列名“ConsumedTime”无效
【发布时间】:2020-11-10 07:02:45
【问题描述】:

似乎定义的 PersistedGrant 表创建脚本here 与 IdentityServer4 的代码不同步。我已经将该脚本应用到我的数据库,并按照here 的描述配置了持久性,但是当我测试登录时,我收到了这个错误:

SqlException:列名“ConsumedTime”无效。 列名“说明”无效。 列名“SessionId”无效。

堆栈跟踪显示这发生在以下代码行中: IdentityServer4.EntityFramework.Stores.PersistedGrantStore.StoreAsync(PersistedGrant token)

我错过了什么?

【问题讨论】:

    标签: identityserver4


    【解决方案1】:

    您拥有的脚本是旧的并且已存档,这里是您应该使用的新脚本的链接: https://github.com/IdentityServer/IdentityServer4/blob/main/src/EntityFramework.Storage/migrations/SqlServer/Migrations/PersistedGrantDb.sql

    【讨论】:

      猜你喜欢
      • 2020-12-31
      • 2021-05-31
      • 2017-12-25
      • 1970-01-01
      • 1970-01-01
      • 2015-08-29
      • 2017-10-10
      • 2020-11-29
      • 1970-01-01
      相关资源
      最近更新 更多