I need the authenticated User, to access REST services.
My idea is to have an IdentityService that is RequestScoped and can be injected by all REST service clients.
The setup is like:
Controller -> BusinessLogic -> RESTServiceClient
So to passing the User down would involve lots of code.
As Guice's @RequestScoped is not supported (https://groups.google.com/forum/#!msg/play-framework/MEOAhdOJz5Q/-cukqS-ZBAAJ)
How can this be done with Play?
The Problem is also described here (without a solution so):