Unable to redirect for OAuth 2.0 transaction