IdentityServer4 - How to store refresh token into database using mysql.data?

前端 未结 2 636
隐瞒了意图╮
隐瞒了意图╮ 2021-01-18 16:09

I\'m new at IdentityServer4. I read I need to implement an IPersistedGrantStore to store refresh tokens into a table like PersistedGrants in my dat

2条回答
  •  攒了一身酷
    2021-01-18 16:28

    I know the question is kind of old and you might have already found the problem. I think your only mistake is that you invented your own interface instead of implementing:

    IdentityServer4.Stores.IPersistedGrantStore
    

    If you want to use your own CustomPersistedGrant it should derive from:

    IdentityServer4.Models.PersistedGrant
    

    otherwise you would have to wrap it somehow.

提交回复
热议问题