Hi Konrad, thanks for the heads up.
Good point, I will also ask around in the Spring community.
It can be looked at, however, as a general question of security in a Akka system - how can I pass user identity information into a Akka system so that it can be picked up by any Actor receiving messages? After thinking a bit about it, it's of course not that straight forward - even if I'm able to bring the Spring SecurityContext onto each thread in the Akka system (by overriding the ExecutionContext (
http://doc.akka.io/docs/akka/snapshot/scala/dispatchers.html), what should be happening when an actor is actually executed on a remote machine?
So my question for this community is: How is identity passed into an Akka System? Or put differently, how do you solve the issue of authorization within an Actor? As an Actor is responsible for the state of a certain resource, it is also its responsibility to make sure to block unauthorized users to change its state.
Best Regards,
Bernd