Fixes to reverse oAuth