-1

I implemented EF for identity server following this link https://github.com/IdentityServer/IdentityServer4.EntityFramework

I see many tables/entities but not even single table for tokens. https://github.com/IdentityServer/IdentityServer4.EntityFramework/tree/dev/src/IdentityServer4.EntityFramework/Entities

Is it correct behavior for production? How can I get token in database or it is not needed even on production?

Thanks

newbeedeveloper
  • 759
  • 2
  • 6
  • 10

1 Answers1

1

PersistedGrants table is where your tokens would be stored. Keep in mind only reference tokens, refresh tokens and authorization code is being saved for security reasons. You will see entries in this table once user logs in successfully. see this for further refrences!

You can also implement your own implementation for the grant store and add it in your startup like this:

services.AddTransient<IPersistedGrantStore, MyPersistedGrantStore>
JayDeeEss
  • 1,075
  • 9
  • 14