1

我是 OpenID 的新手,我正在使用 LightOpenID 提供针对 Google 帐户的身份验证。是否可以执行不涉及标头重定向或可以通过原始 HTTP 请求中存在的任何 GET 和 POST 变量的身份验证?

发生标头重定向时,原始 HTTP 请求中的所有变量都会丢失。

谢谢!

4

1 回答 1

1

You can set GET parameters in your $openid->return_to.

For example, if you do:

$openid->return_to .= '?a=5&b=23'

You get $_GET['a'] == 5, and $_GET['b'] == 23 in the request after authentication.

There is no way to set POST parameters this way, or to avoid redirections.

于 2012-03-08T08:19:46.397 回答