1 module CurrentApiClient
7 Thread.current[:api_client]
10 # Where is the client connecting from?
11 def current_api_client_ip_address
12 Thread.current[:api_client_ip_address]
15 # Is the current client permitted to perform ALL actions on behalf
16 # of the authenticated user?
17 def current_api_client_trusted
18 Thread.current[:api_client_trusted]