使用Flex的Google Oauth crossdomain.xml问题 [英] Google Oauth crossdomain.xml problem with Flex

查看:217
本文介绍了使用Flex的Google Oauth crossdomain.xml问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图从 https://www.google.com/accounts/获取RequestToken OAuthGetRequestToken 。它在Flash Builder中正常工作,但不在本地主机上。我认为这是crossdomain.xml问题,所以我尝试通过 https://找到跨域文件www.google.com/accounts/crossdomain.xml https://www.google.com的/crossdomain.xml 。但是,我找不到它。



我的问题是在哪里可以找到OAuthGetRequestToken的crossdomain.xml。

请指教。

更新:

  var loader:URLLoader = new URLLoader (); 
var request:OAuthRequest = new OAuthRequest(GET,requestTokenUrl,oauthParams,consumer,null);
var urlrequest:URLRequest = new URLRequest(request.buildRequest(signatureMethod));
loader.addEventListener(Event.COMPLETE,requestTokenHandler);
loader.load(urlrequest);


解决方案

最后,我使用AuthSub进行Authorization with Flex 。我在下面的问题请求中提到了这一点:$ b​​ $ b http://code.google.com/p/gdata-issues/issues/detail?id=1855#makechanges



如果有人对看到这种情况,请明确上述功能请求。


I am trying to get the RequestToken with flex from https://www.google.com/accounts/OAuthGetRequestToken. It works fine in the Flash Builder, but not in the localhost. I think it is the crossdomain.xml problem, so I try to find the crossdomain file in https://www.google.com/accounts/crossdomain.xml and https://www.google.com/crossdomain.xml. However, I cannot find it.

My question is where I can find crossdomain.xml for OAuthGetRequestToken.

Please advice. Thanks.

Update:

var loader:URLLoader = new URLLoader();
var request:OAuthRequest = new OAuthRequest("GET", requestTokenUrl, oauthParams, consumer, null);
var urlrequest:URLRequest = new URLRequest(request.buildRequest(signatureMethod));
loader.addEventListener(Event.COMPLETE, requestTokenHandler);
loader.load( urlrequest );

解决方案

Finally, I use the AuthSub for the Authorization with Flex. I have mention this in the following issue request: http://code.google.com/p/gdata-issues/issues/detail?id=1855#makechanges

If anyone is interested in seeing this happen, please star the above feature request.

这篇关于使用Flex的Google Oauth crossdomain.xml问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆