gerrit與crowdid, openid集成,設置openIdSsoUrl 直接登錄

gerrit 版本爲2.7

gerrit驗證方式選擇 OPENID_SSO,使用的是crowdid做爲用戶驗證服務。

進入gerrit安裝目錄:
cd review_site/etc/
vi gerrit.config,修改如下:

1
2
3
4
5
[auth]
        type = OPENID_SSO
        openIdSsoUrl = http://www.exampledomain.com/openidserver/op
        logoutUrl = http://www.exampledomain.com/openidserver/logoff.action
        maxOpenIdSessionAge = 0

也可以使用如下命令修改:

1
git config --file gerrit.config auth.openIdSsoUrl http://www.exampledomain/openidserver/op

根據自己的情況替換 www.exampledomain.com

修改完成,重啓gerrit服務。
進入gerrit頁面,點擊,右上角sign in,直接跳到 crowdid登錄頁面,填寫正確的 賬號,密碼後,返回gerrit。So perfect


歡迎轉載:http://www.yinqisen.cn/blog-298.html

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章