You should not extend the standard protocol functions if existing problems solve your problem. The correct approach is to define your own authorization scheme for the header Authorization.
You can do something like:
Authorization: MyCompanyLogin token="abcdefg...."
source
share