-
Hi there! I've been using spring-addons and it makes my life way easier, so I thank every contributor for that! I have a question related to token caching. I don't know if this place is the one I should ask this at, but here I go. Context:
I am spawning new coroutines when authorizing rpc methods. I have enabled Can I somehow clear the context, set up a custom strategy that handles all contexts correctly or something to fix this? Or would the best practice be something like to pass down the authentication object from the controller, instead of trying to inherit context and get it from Snips of what I am doing (maybe that helps):
Sample endpoints:
Sometimes I use custom securityExpressions
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This is something I almost always do, reason why I never faced the kind of issue you are reporting. That said, it doesn't seem legit to get an outdated Authentication instance from the SecurityContext. I don't think that spring-addons can do much about the issue you report (not sure it can be fixed with just configuration). Maybe would it be worth to ask a question on stackoverflow (and later an issue on Spring Security repo if you don't get any useful answer from SO)? |
Beta Was this translation helpful? Give feedback.
This is something I almost always do, reason why I never faced the kind of issue you are reporting. That said, it doesn't seem legit to get an outdated Authentication instance from the SecurityContext.
I don't think that spring-addons can do much about the issue you report (not sure it can be fixed with just configuration). Maybe would it be worth to ask a question on stackoverflow (and later an issue on Spring Security repo if you don't get any useful answer from SO)?