Register in gerrit with OpenID failed

匿名 (未验证) 提交于 2019-12-03 01:22:02

问题:

I'm trying to setup the gerrit these days,but when it comes to Register with OpenID,there is always a problem " Provider is not supported, or was incorrectly entered." I have seen the same question on OpenID with Gerrit not working i didn't find the answer.If this is a bug in previous version,My gerrit version is gerrit-1.2.1.6 and it shouldn't have the bug. I noticed that in my corporation my IP address is private 10.238.151.109,and I set the canonical URL like this http://10.238.151.109:8080,then I can access gerrit server in the local network. If it's because I use this canonical URL and people can't access OpenID from it? I'm waiting for help,any help is grateful,thanks.

回答1:

I noticed that in my corporation my IP address is private

If you use OpenID to sign in to Gerrit, you need to make sure that the OpenID provider can reach your Gerrit server.

Not long ago, I tried setting up Gerrit when I was at my university, on a WPA Enterprise network behind a firewall and god knows what other security and it would just not work, kept getting the same error as you.
Later, at home, on a basic WPA2 network, I tried the OpenID sign-in again and it worked just fine.

In addition, you need some port forwarding to make sure the relevant requests are forwarded to the Gerrit server.

Be aware though, as of now Gerrit and Google's OpenId don't work anymore*. You can however use Yahoo's OpenID.

*See https://code.google.com/p/gerrit/issues/detail?id=2677 and https://code.google.com/p/gerrit/issues/detail?id=2715



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!