question

isaaclevin avatar image
0 Votes"
isaaclevin asked JackJJun-MSFT edited

Persist User Account through docker restart?

Here is the GitHub issue for more context.

https://github.com/isaacrlevin/presencelight/issues/599

I want to be able to persist the UserAccount of a logged in user that I am caching through a docker restart. Currently I am caching the token properly and log in is not enforced through a restart BUT the population of the UserAccount object is required (this is done through Identity.Web).

Is what I am trying to do possible? Long and short I want to be able to have a populated UserAccount even though the docker container restarts.

dotnet-ad
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

The user identity is cached in a cookie within the browser. The data is encrypted so as long as the same scheme is used it should just work.

https://andrewlock.net/an-introduction-to-the-data-protection-system-in-asp-net-core/


https://docs.microsoft.com/en-us/aspnet/core/security/data-protection/using-data-protection?view=aspnetcore-6.0


0 Votes 0 ·

So I need to cache the user identity to a file than deserialize in app load?

0 Votes 0 ·

0 Answers