Hello,
I need to be able to impersonate users (user ids more specifically), while developing/testing my API and controllers.
Ideally, I want to be able to manipulate the response I get from:
$this->ci->currentUser;
Maybe I can selectively force a specific user id from an external configuration file?
Or provide a special API field to set the user_id to impersonate in each API request? (that would be easier for my API testing as well)
Any ideas?
Thanks