如何使用数据库存储?

问题描述

openiddict 的新手,只是想知道是否有关于如何配置数据库客户端存储以及可以运行的所需表/迁移表的示例。样本似乎都显示在内存客户端数据库中。

解决方法

假设您使用 Entity Framework Core,除了在入门文档中提到的注册 OpenIddict 实体所需的 options.UseOpenIddict() 调用之外,在此过程中没有任何 OpenIddict 特定的内容:https://documentation.openiddict.com/guide/getting-started.html

有关更完整的示例,请参阅 https://github.com/openiddict/openiddict-samples/tree/dev/samples/Velusia/Velusia.Server