Android uber 错误 No authentication challenges found

标签 android uber-api

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

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

enter image description here

我的重定向 URL 是: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)));

请帮我解决这个问题?

最佳答案

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

关于Android uber 错误 No authentication challenges found,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30348821/

相关文章:

java - 如何使用 String.format()

android - 将位图数组转换为 YUV (YCbCr NV21)

java - Android:当我传递 Null 时,构造函数是不明确的,但当我传递分配给 Null 的变量时则不是

android - Unity 2019 - SDK 工具版本 0.0 < 26.1.1

android - Uber SDK 中的 "SURGE CONFIRMATION REDIRECT URI"是什么?

android - 如何在 Uber 中获取客户端和服务器 token ?

java - Android - Snackbar 覆盖我的 View

android - 优步请求按钮 onClickListener

android - 在 Android 上使用 Uber Ride 进行隐式授权身份验证

swift - Uber SSO 登录错误 Swift 2.3