Fixes to oauth2 receiver to work with different response formats.