[#1] Basic auth and OAuth credentials functions.