stable

Clone or download

Read-only

Define projects that can use SVN tokens

This task is part of story #8608: User can manage his own svn tokens In the site admin section, if your svn_auth_type is not in modperl, you will be able to define which project will be authorized to use SVN tokens in addition of classic username + password. A system_event will be created to rewrite the codendi_svnroot.conf file according to these news changes. For now, the revoke part is not yet implemented. Change-Id: I2f74c0530718b4f81263831dc84bd86f0721652c

Modified Files

Name
M plugins/git/include/Git/AdminAllowedProjectsPresenter.class.php +2 −0 Go to diff View file
M plugins/ldap/tests/LDAP_BackendSVNTest.php +54 −40 Go to diff View file
M plugins/pluginsadministration/include/ManageAllowedProjectsPresenter.class.php +1 −0 Go to diff View file
M site-content/en_US/admin/admin.tab +2 −0 Go to diff View file
M site-content/en_US/svn/svn.tab +19 −0 Go to diff View file
M site-content/fr_FR/admin/admin.tab +2 −0 Go to diff View file
M site-content/fr_FR/svn/svn.tab +19 −0 Go to diff View file
M src/common/autoload.php +6 −2 Go to diff View file
M src/common/backend/BackendSVN.class.php +12 −1 Go to diff View file
M src/common/event/Event.class.php +11 −0 Go to diff View file
M src/common/svn/SVN_Apache_Auth_Factory.class.php +65 −35 Go to diff View file
A src/common/svn/admin/SVN_Admin_AllowedProjectsPresenter.class.php +131 −0 Go to diff View file
A src/common/svn/admin/SVN_Admin_Controller.php +109 −0 Go to diff View file
M src/common/svn/tokens/SVN_TokenDao.class.php +26 −0 Go to diff View file
A src/common/svn/tokens/SVN_TokenUsageManager.php +69 −0 Go to diff View file
M src/common/system_event/SystemEvent.class.php +2 −3 Go to diff View file
M src/common/system_event/SystemEventManager.class.php +11 −0 Go to diff View file
A src/common/system_event/include/SystemEvent_SVN_AUTHORIZE_TOKENS.class.php +58 −0 Go to diff View file
M src/db/mysql/database_structure.sql +5 −0 Go to diff View file
A src/db/mysql/updates/2015/201512281119_add_svn_token_usage_table.php +40 −0 Go to diff View file
M src/templates/resource_restrictor/manage-allowed-projects.mustache +2 −0 Go to diff View file
M src/www/admin/index.php +10 −0 Go to diff View file
A src/www/admin/svn/svn_tokens.php +35 −0 Go to diff View file
M tests/simpletest/common/backend/BackendSVNTest.php +86 −64 Go to diff View file
M tests/simpletest/common/svn/SVN_Apache_Auth_FactoryTest.php +60 −49 Go to diff View file
M tests/simpletest/common/svn/SVN_Apache_SvnrootConfTest.php +42 −17 Go to diff View file