https://www.google.com/accounts/o8/ud?
openid.ns=http://specs.openid.net/auth/2.0
&
openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select
&
openid.identity=http://specs.openid.net/auth/2.0/identifier_select
&
openid.return_to=" + result + "
&
openid.realm=" + current + "
&
openid.mode=checkid_setup
看下这个链接,其实你需要设置的就是result 和 current 两个链接地址,把以上链接封装为一个地址,然后传入参数,当然了,这只是一个基本的演示,关于更多的参数可以去Google上面去查看,官方也发布了相应的类库..
需要注意的就是两个地址必须属于同一个域...
openid.return_to这个代表登陆成功后返回的你网站的地址,另外会附加一些信息...我也不懂 哈哈 自己研究吧...
Ok~ 复制上面的链接...快试试吧