1

我正在尝试在我的 Android 应用程序中实现 Uber。对用户进行身份验证时出现错误“未找到身份验证挑战”。

我在 Uber 中创建了一个应用程序,并为该应用程序提供了以下范围,如图所示。

在此处输入图像描述

我的重定向网址是:http://localhost/auth

在我的 Android 应用程序中,我为授权调用提供了以下范围列表

public static final String SCOPES = "profile history_lite history";

并将参数列表添加到 api。

params.add(new BasicNameValuePair("response_type", Constants.CODE));
params.add(new BasicNameValuePair("client_id", Constants
        .getUberClientId(this)));
params.add(new BasicNameValuePair("scope", Constants.SCOPES));
params.add(new BasicNameValuePair("redirect_uri", Constants
        .getUberRedirectUrl(this)));

请帮我解决这个问题?

4

1 回答 1

1

您可以将此适用于 Android 的 Uber SDK 集成到您的应用程序中,请单击此处。请注意,这仍然是测试版。

于 2015-08-25T07:36:46.640 回答