"postmessage"的目的是什么?在重定向URI中? [英] What is the Purpose of "postmessage" in a Redirect URI?

查看:36
本文介绍了"postmessage"的目的是什么?在重定向URI中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

To my knowledge, in Google's authentication code flow it is required for the redirect_uri to be 'postmessage' instead of a URI.

任何人都可以解释这个值在做什么吗?

我最好的解释是,它告诉浏览器返回帖子的来源,但是我没有文档可以支持这种假设.

My best explanation is that it tells the browser to return to where the post came from, but I have no documentation to back this assumption up.

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

There seems to be zero documentation on this topic, yet it is the given solution in most scenarios. Any clarification would be nice.

推荐答案

此处有一些(旧的)文档: https://developers.google.com/+/sign-in-faq 显示这是要与Javascript应用程序一起使用的Google+登录特定参数:

There's a bit of (old) documentation here: https://developers.google.com/+/sign-in-faq that shows this is a Google+ Signin specific parameter to be used with Javascript apps:

REDIRECT_URI如果存在URL,则说明您正在使用网络重定向方法.要充分利用Google+登录功能,请考虑使用JS小部件方法.使用JS方法,其价值redirect_uri应该是后消息.

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小部件使用,因此它用作空值.

Basically the redirect_uri value does not get used by the JS widget so it functions as an empty value.

这篇关于"postmessage"的目的是什么?在重定向URI中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆