重定向 URI 中 "postmessage" 的用途是什么?

What is the Purpose of "postmessage" in a Redirect URI?

据我所知,在 Google 的身份验证代码流中,redirect_uri 必须是 'postmessage' 而不是 URI。

谁能解释一下这个值具体是做什么的?

我最好的解释是它告诉浏览器 return 到 post 的来源,但我没有文档来支持这个假设。

关于这个主题的文档似乎为零,但它是大多数情况下的给定解决方案。 任何澄清都会很好。

这里有一些(旧的)文档: https://developers.google.com/+/sign-in-faq 这表明这是一个 Google+ 登录特定参数,用于 Javascript 应用程序:

REDIRECT_URI If a URL is present you are using the web redirect approach. To take full advantage of Google+ Sign-In features, consider using the JS widget approach. With the JS approach, the value of redirect_uri should be postmessage.

基本上,redirect_uri 值不会被 JS 小部件使用,因此它作为空值运行。