Add support for OAuth whole-page redirect with server