Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试将 Windows Live ID 合并到我的应用程序中。
首先,我在这里创建了一个 Windows Live 开发应用程序帐户:
http://msdn.microsoft.com/en-us/windowslive
假设我的客户 ID 是 12345(当然,它真的很长)
然后,我按照以下说明进行操作:
http://msdn.microsoft.com/en-us/library/hh243647.aspx
这建议使用以下示例 URL:
https://oauth.live.com/authorize?client_id=CLIENT_ID&scope=SCOPES&response_type=token&redirect_uri=REDIRECT_URL
我使用这个自定义 URL:
https://oauth.live.com/authorize?client_id=12345&response_token=token&scope=wl.signin%2cwl.basic%2cwl.offline_access&redirect_url=https%3a%2f%2foauth.live.com&display=touch
霍雷,用户得到提示登录!
嘘,用户被重定向到无效页面。
我在这里缺少什么吗?提前致谢。
当然,错误出现在我的 URL 中。正确的是:
https://oauth.live.com/authorize?client_id=12345&response_type=token&scope=wl.signin%2cwl.basic%2cwl.offline_access&redirect_uri=https%3a%2f%2foauth.live.com%2fdesktop&display=touch
希望这可以帮助其他人试图解决这个问题!