New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to refresh Serenity.Authorization.UserDefinition after user logged on #2365
Comments
Try this way: UserRetrieveService.RemoveCachedUser(....) |
Thanks @marcobisio , where should I call that? In the AuthenticationService.cs file? So It doesn't cache it anymore...or right before I need it and Serenity will automatically retrieve the current user profile? Or right after my background process is done and it will remove the current cache and force it to use the newer userdefinition? |
You're welcome @wirble.
Bye |
@marcobisio thanks again. I have seen the removecacheduser after the update in authenticationservice file. I wasnt sure if I had to call retrieve again, but i assume serenity will do that automatically. |
@marcobisio |
What is the best way for me to get an updated version of the UserDefinition of the currently logged on user.
When a user logged on, I have a background process that updates their profile on certain criteria. After this background process is done, what is the best way for me to update their cached UserDefinition and how?
Should I turn off the cache function, if so how can I do that?
Or is there a way to retrieve their current userdefinition instead of the cached version?
Thanks much.
The text was updated successfully, but these errors were encountered: