Handle Non-Standard API Authentication in APEX