在UWP应用中使用WebAuthenticationBroker获取steam openid认证。

weixin_38066913 2018-03-20 02:18:58
var uriStringBuilder = new StringBuilder("https://steamcommunity.com/openid/login");
uriStringBuilder.AppendFormat("?openid.ns={0}", "http://specs.openid.net/auth/2.0");
uriStringBuilder.AppendFormat("&openid.mode={0}", "checkid_setup");
uriStringBuilder.AppendFormat("&openid.return_to={0}", WebAuthenticationBroker.GetCurrentApplicationCallbackUri());
uriStringBuilder.AppendFormat("&openid.realm={0}", "https://SteamUWP.com");
uriStringBuilder.AppendFormat("&openid.identity={0}", "http://specs.openid.net/auth/2.0/identifier_select");
uriStringBuilder.AppendFormat("&openid.claimed_id={0}", "http://specs.openid.net/auth/2.0/identifier_select");
这一段,是我生成的URI。放到系统浏览器里能正常运行。但使用WebAuthenticationBroker就无法连接资源了。难道说是WebAuthenticationBroker不使用系统代理设置?有没有朋友写过steam登录?


中学为体,西学为用。
...全文
234 2 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
weixin_38099556 2018-04-24
  • 打赏
  • 举报
回复
你好:
     谢谢您的回复。以下是错误信息:
     AuthHost 在 URL: <https://steamcommunity.com/openid/login?openid.ns=http://specs.openid.net/auth/2.0&openid.mode=checkid_setup&openid.return_to=ms-app://s-1-15-2-1054198840-1989183476-2535625802-3413566320-695720467-3600684706-3576955360/&openid.realm=ms-app://s-1-15-2-1054198840-1989183476-2535625802-3413566320-695720467-3600684706-3576955360/&openid.identity=http://specs.openid.net/auth/2.0/identifier_select&openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select>
遇到导航错误,StatusCode: 0x800C0005。中学为体,西学为用。
weixin_38086594 2018-03-22
  • 打赏
  • 举报
回复
你好,
请问它是否由报异常,或者说它没有报异常,返回给你什么错误信息呢?

473

社区成员

发帖
与我相关
我的任务
社区描述
其他技术讨论专区
其他 技术论坛(原bbs)
社区管理员
  • 其他技术讨论专区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧