OAuth and OAuth2 authentication fails while going through the ProxySG