Able to correctly generate the Authorization header