stable

Clone or download

Read-only

request #9079 Gerrit REST with BasicAuth

Allow site admin to configure a gerrit server with Basic Auth instead of Digest. How to test ? Modify your gerrit config and set gitBasicAuth = true in [auth] section. Be careful, the http password is then the one defined in LDAP (and not the generated one in gerrit interface) The you can update the configuration in Tuleap / git site admin Change-Id: Ie2ea0f44e9aa6ef2af0db8f02ac7fdac523029eb

Modified Files

Name
M plugins/git/db/install.sql +1 −0 Go to diff View file
A plugins/git/db/mysql/updates/2016/201604171720_add_remote_servers_auth_type.php +59 −0 Go to diff View file
M plugins/git/include/Git.class.php +1 −1 Go to diff View file
M plugins/git/include/Git/AdminGerritController.class.php +8 −3 Go to diff View file
M plugins/git/include/Git/Driver/GerritDriverFactory.php +2 −1 Go to diff View file
M plugins/git/include/Git/Driver/GerritREST.class.php +8 −2 Go to diff View file
M plugins/git/include/Git/RemoteServer/Dao.class.php +5 −3 Go to diff View file
M plugins/git/include/Git/RemoteServer/GerritServer.class.php +16 −1 Go to diff View file
M plugins/git/include/Git/RemoteServer/GerritServerFactory.class.php +4 −2 Go to diff View file
M plugins/git/include/Git/RemoteServer/GerritServerPresenter.class.php +2 −0 Go to diff View file
M plugins/git/include/events/SystemEvent_GIT_GERRIT_ADMIN_KEY_DUMP.class.php +1 −1 Go to diff View file
M plugins/git/templates/admin-plugin-gerrit-server.mustache +18 −0 Go to diff View file
M plugins/git/tests/Git/AdminGerritControllerTest.php +2 −2 Go to diff View file
M plugins/git/tests/Git/Driver/Gerrit/GerritDriverFactoryTest.php +3 −0 Go to diff View file
M plugins/git/tests/Git/Driver/Gerrit/ProjectCreatorTest.php +3 −2 Go to diff View file
M plugins/git/tests/Git/Driver/Gerrit/RemoteSSHCommandTest.php +4 −2 Go to diff View file
M plugins/git/tests/Git/Driver/GerritTest/REST/GerritREST_Base.php +1 −1 Go to diff View file
M plugins/git/tests/Git/Driver/GerritTest/REST/GerritREST_manageGroupsTest.php +1 −1 Go to diff View file
M plugins/git/tests/Git/RemoteServer/GerritServerFactoryTest.php +11 −6 Go to diff View file
M plugins/git/tests/Git/RemoteServer/GerritServerTest.php +21 −7 Go to diff View file
M plugins/git/tests/builders/aGerritServer.php +3 −2 Go to diff View file
M plugins/git/tests/events/SystemEvent_GIT_GERRIT_ADMIN_KEY_DUMPTest.php +3 −1 Go to diff View file