雅虎无法处理您的请求95022,OAuth2身份验证错误

时间:2014-12-13 22:36:16

标签: c# oauth-2.0 xamarin yahoo-api

我正在尝试在Xamarin Studio的Xamarin Auth组件中使用Yahoo的开发人员API。我使用Yahoo的开发人员工具创建了我的应用程序,设置了我阅读所有内容的权限,但无法获得授权。我收到以下错误。

糟糕。雅虎无法处理您的请求。我们建议您与应用程序或网站的所有者联系以解决此问题。 [95022]

以下是我的代码

        string clientId = "<application id from developer.apps.yahoo.com>";
        string scope = "";
        Uri authorizeUrl = new Uri("https://api.login.yahoo.com/oauth2/request_auth");
        Uri redirectUrl = new Uri("http://www.website.com");
        var auth = new OAuth2Authenticator(clientId, scope, authorizeUrl, redirectUrl);

        auth.Completed += (sender, eventArgs) => {
            Console.WriteLine("Completed!");
            Console.WriteLine("eventArgs.IsAuthenticated = " + eventArgs.IsAuthenticated);
            DismissViewController (true, null);
            if (eventArgs.IsAuthenticated) {
                // Use eventArgs.Account to do wonderful things

            }
        };


        PresentViewController(auth.GetUI(), true, null);

关于我在这里做错了什么的想法?

--------------更新--------------

我无法在Xamarin.Auth与雅虎合作中获得OAuth2,但我确实让OAuth1正常运行。我最终甚至没有使用该组件,而是使用OA开发者文档中记录的另一个OAuth实现,其中包含OAuth和BOSS

Using OAuth with BOSS API

0 个答案:

没有答案