我在WP7 Mango WebBrowser控件中使用Flickr進行OAuth身份驗證過程遇到一些困難。 後在瀏覽器中,例如「谷歌」的標誌被重定向到以下頁面:頁面重定向(在Flickr上)WP7 WebBrowser問題
<html xmlns="http://www.w3.org/1999/xhtml">
<head></head>
<body dir="" onload="document.forms['f'].submit();">
<form id="f" method="POST" name="f" action="https://open.login.yahoo.com/openid/yrp/return_to?sid=0cbf1840b0b13c261235">
<input name="openid.ns" value="http://specs.openid.net/auth/2.0" type="hidden">
<input name="openid.mode" value="id_res" type="hidden">
<input name="openid.op_endpoint" value="https://www.google.com/accounts/o8/ud" type="hidden">
<input name="openid.response_nonce" value="2011-09-14T10:16:07Zsdv-LClYH0A" type="hidden">
<input name="openid.return_to" value="https://open.login.yahoo.com/openid/yrp/return_to?sid=e7578b76a72f0c261235" type="hidden">
<input name="openid.assoc_handle" value="AOQobUfPBfylWt9AYvILwR347CMGMjh2j4b5jlHe175juowtl05" type="hidden">
<input name="openid.signed" value="op_endpoint,claimed_id,identity,return_to,response_nonce,assoc_handle,ns.ext1,ns.ext2,ext1.mode,ext1.type.fn,ext1.value.fn,ext1.type.gid,ext1.value.gid,ext1.type.em,ext1.value.em,ext1.type.lg,ext1.value.lg,ext1.type.ln,ext1.value.ln,ext2.auth_time,ext2.auth_policies" type="hidden">
<input name="openid.sig" value="e5HFSrO0P+yeRJstJHGJlROUkDvVIDGU=" type="hidden">
<input name="openid.identity" value="https://www.google.com/accounts/o8/id?id=AItOawlmDnO3Bct_YhZlwXpAsU" type="hidden">
<input name="openid.claimed_id" value="https://www.google.com/accounts/o8/id?id=AItOawnO3Bct_YhZlVBwXpAsU" type="hidden">
<input name="openid.ns.ext1" value="http://openid.net/srv/ax/1.0" type="hidden">
<input name="openid.ext1.mode" value="fetch_response" type="hidden">
<input name="openid.ext1.type.fn" value="http://axschema.org/namePerson/first" type="hidden">
<input name="openid.ext1.value.fn" value="John" type="hidden">
<input name="openid.ext1.type.gid" value="http://www.google.com/accounts/api/federated-login/id" type="hidden">
<input name="openid.ext1.value.gid" value="837487387483142978" type="hidden">
<input name="openid.ext1.type.em" value="http://axschema.org/contact/email" type="hidden">
<input name="openid.ext1.value.em" value="[email protected]" type="hidden">
<input name="openid.ext1.type.lg" value="http://axschema.org/pref/language" type="hidden">
<input name="openid.ext1.value.lg" value="en-US" type="hidden">
<input name="openid.ext1.type.ln" value="http://axschema.org/namePerson/last" type="hidden">
<input name="openid.ext1.value.ln" value="Doe" type="hidden">
<input name="openid.ns.ext2" value="http://specs.openid.net/extensions/pape/1.0" type="hidden">
<input name="openid.ext2.auth_time" value="1970-01-01T00:21:55Z" type="hidden">
<input name="openid.ext2.auth_policies" value="http://schemas.openid.net/pape/policies/2007/06/none" type="hidden">
<input name="openid.ns.ext3" value="http://specs.openid.net/extensions/ui/1.0" type="hidden">
<input name="openid.ext3.mode" value="popup" type="hidden">
<noscript><input value="Continue to open.login.yahoo.com" type="submit"></noscript>
</form>
</body>
</html>
當瀏覽器加載頁面我剛看到的文字非常小按鈕「繼續open.login.yahoo .com「,在我看來,這不是用戶友好的。 現在你們可能會認爲我沒有使用IsScriptEnabled =「True」進行測試。使用IsScriptEnabled =「True」,它只是隱藏按鈕並放置一個空白頁面。
我也嘗試使用InvokeScript方法來運行document.forms ['f']。submit(),但我只是在應用程序中接收COM異常。
請幫忙!任何提示或建議?