stable
Clone or download
Read-only
Introduce an endpoint dealing with user authentication and project-level authz for SVN operations
This endpoint is expected to behave in the same way than the existing Tuleap.pm code. A 204 status code means the user is allowed to access the project to do SVN operations. A 403 status means the user cannot access the project/is not authenticated. In upcoming contribution this endpoint will be used with ngx_http_auth_request_module nginx module to replace the Tuleap.pm existing code. To test you can use cURL like this: `curl -v 'https://<domain_name>/svn-project-auth' --data 'login_name=<login_name>&user_secret=<secret>&project_name=<project_name>'` Part of request #26407: De-duplicate authz/authn code used for SVN accesses Change-Id: I8cb498fb2a962b2f09c0379a7ee5ba3e881d6407
Modified Files
Name | ||||
---|---|---|---|---|
M | site-content/en_US/include/include.tab | +0 | −1 | Go to diff View file |
M | site-content/fr_FR/LC_MESSAGES/tuleap-core.po | +3 | −0 | Go to diff View file |
M | site-content/fr_FR/include/include.tab | +0 | −1 | Go to diff View file |
M | site-content/pt_BR/LC_MESSAGES/tuleap-core.po | +3 | −0 | Go to diff View file |
A | src/common/Http/Server/IPAddressExtractor.php | +86 | −0 | Go to diff View file |
M | src/common/Request/RouteCollector.php | +41 | −0 | Go to diff View file |
A | src/common/SVNCore/AccessControl/SVNAuthenticationMethod.php | +32 | −0 | Go to diff View file |
A | src/common/SVNCore/AccessControl/SVNPasswordBasedAuthenticationMethod.php | +50 | −0 | Go to diff View file |
A | src/common/SVNCore/AccessControl/SVNProjectAccessController.php | +109 | −0 | Go to diff View file |
A | src/common/SVNCore/AccessControl/SVNTokenBasedAuthenticationMethod.php | +44 | −0 | Go to diff View file |
M | src/common/SVNCore/Tokens/SVN_TokenDao.class.php | +5 | −0 | Go to diff View file |
M | src/common/SVNCore/Tokens/SVN_TokenHandler.class.php | +14 | −0 | Go to diff View file |
M | src/common/User/InvalidPasswordException.class.php | +1 | −1 | Go to diff View file |
M | src/common/User/InvalidPasswordWithUserException.class.php | +1 | −1 | Go to diff View file |
M | src/common/include/HTTPRequest.class.php | +2 | −72 | Go to diff View file |
M | src/www/include/pre.php | +0 | −1 | Go to diff View file |
M | src/www/soap/common/session.php | +2 | −4 | Go to diff View file |
A | tests/unit/common/SVNCore/AccessControl/SVNPasswordBasedAuthenticationMethodTest.php | +70 | −0 | Go to diff View file |
A | tests/unit/common/SVNCore/AccessControl/SVNProjectAccessControllerTest.php | +160 | −0 | Go to diff View file |
A | tests/unit/common/SVNCore/AccessControl/SVNTokenBasedAuthenticationMethodTest.php | +58 | −0 | Go to diff View file |
A | tests/unit/common/SVNCore/Tokens/SVN_TokenHandlerTest.php | +72 | −0 | Go to diff View file |