本文介绍了移动OAuth UI无法在WP7中加载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个WP7应用程序通过oauth连接到我的GAE后端。 (它可能与GAE无关,但无论如何我都会抛出这个事实。)



我使用btmpl = mobile参数来强制移动用户界面在Google身份验证页面中,但我一直收到在移动浏览器中很难解密的非移动版本。我提取的Auth URI如下所示:





当我将该网址放入桌面Chrome和Firefox以及IE中,我获得了移动登录界面。当我将该网址放入Android的股票浏览器时,我获得了移动UI。但是,将该确切的URL放入WP7 Webbrowser控件或WP7中的普通浏览器中时,会生成桌面UI。这可能与WP7正在运行的IE的古老版本有关,但我真的不知道发生了什么。

解决方案

p>这个神奇地停止了芒果的发生。


I have a WP7 app that is connecting to my GAE backend via oauth. (Its probably not relevant that this is GAE, but I'm throwing that fact in anyway.)

I use the "btmpl=mobile" parameter to force a mobile UI in the Google auth pages, but I keep getting the non-mobile version which is really hard to decipher in a mobile browser. I extracted the Auth URI which looks something like:

http://www.myapp.com/_ah/OAuthAuthorizeToken?btmpl=mobile&oauth_token=randomlongstring

When I put that URL into desktop Chrome and Firefox and IE, I got the mobile login UI. When I put that URL into Android's stock browser, I got the mobile UI. But that exact URL when put into either a WP7 webbrowser control, or into the normal browser in WP7, produces the desktop UI. This probably has something to do with the ancient build of IE that WP7 is running, but really I have no idea what's going on.

解决方案

This magically stopped happening with Mango.

这篇关于移动OAuth UI无法在WP7中加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-25 06:48