Setting up identity for all controllers and services in a request chain, assuming that they have been injected in the first place.
The identity is first set when a baseController is called. If any of the dependencies in the chain has the "identity" property then, it will get set. Caution though as it is possible that the user is not authenticated, in which case, the identity would be null or undefined, which is I think the expected behavior.