title: How to make request-bound data globally available in Ktor?
body: <p>I'm building a microservice in Ktor. While we are working within the application module, Ktor provides access to the <code>call</code> object which contains authorization data.</p>
  
  <p>My problem is that I need to access the <code>call</code> object from a service-level class. In Spring, you would do this by accessing the <code>SecurityContext</code> which is globally available via a <code>ThreadLocal</code>. Ktor, being coroutine-driven, does not have that option.</p>
  
  <p>Do I really need to pass down the <code>call</code> object through my service layer methods, or is there a way in Ktor to have some sort of "call context" object that you can access from anywhere?</p>