Skip to content
Discussion options

You must be logged in to vote

Unfortunately, there is currently no mechanism built-in to enable a caching layer on top of the existing EF Core backed UserSessionStore.
If you disable server-side sessions, then the cookies would indeed contain the access token again, but you would also lose the ability to revoke sessions when the user signs out (or is signed out) from the identity provider. Adding a caching layer would also increase the risk for a session to still be valid (in the cache) while it should've already been revoked.

You can however provide a custom implementation for the IUserSessionStore interface which adds a caching layer on top of a SQL-backed store.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@bamarch
Comment options

@bamarch
Comment options

Answer selected by bamarch
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
BFF
Labels
None yet
3 participants