That was easy. Okapi already passes all X-something headers around, so that part works out of the box. Declared the new header in XOkapiHeaders, added a test case, and code in test-auth-module to extract the userid from the token, which already carried it.
Heikki Levanto July 26, 2017 at 9:30 AM
This will be needed for mod-comments, where we need to store the user who created the comment. And probably in many other places, including logging and auditing.
Expect to get X-Okapi-User-Id header from mod-auth, and pass it on to all modules invoked.