C# Yahoo无法处理您的请求95022,OAuth2身份验证错误
我试图在Xamarin Studio的Xamarin Auth组件中使用Yahoo的开发者API。我用Yahoo的开发者工具在中创建了我的应用程序,设置了阅读所有内容的权限,但无法获得授权。我得到以下错误 哎呀。雅虎无法处理您的请求。我们建议您联系应用程序或网站的所有者以解决此问题。[95022] 下面是我的代码C# Yahoo无法处理您的请求95022,OAuth2身份验证错误,c#,oauth-2.0,xamarin,yahoo-api,C#,Oauth 2.0,Xamarin,Yahoo Api,我试图在Xamarin Studio的Xamarin Auth组件中使用Yahoo的开发者API。我用Yahoo的开发者工具在中创建了我的应用程序,设置了阅读所有内容的权限,但无法获得授权。我得到以下错误 哎呀。雅虎无法处理您的请求。我们建议您联系应用程序或网站的所有者以解决此问题。[95022] 下面是我的代码 string clientId = "<application id from developer.apps.yahoo.com>"; st
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中与Yahoo合作获得OAuth2,但我确实获得了OAuth1的功能。我甚至没有使用这个组件,而是使用了另一个OAuth实现,该实现在Yahoo开发者文档中有OAuth和BOSS,在这里可以找到