Fixes to Auth
Changes according to current API
Support status_code override and fixes