stable
Clone or download
Read-only
To test you can create an access key via the REST endpoint POST /access_keys with the scope "write:git_repository". To be compatible with the most tools, basic authentication is used. The user is suppose to provide a username and an access key instead ot its password. When a valid access key is given with the incorrect username the access key usage will be logged (it means the access key is known) but the access will be denied. Part of story #14023: access Git repositories with a personal access key Change-Id: I12fa0ec276dcaf9e3c2d0c9a9f598bd0b2bbd921
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/git/include/Git/HTTP/HTTPAccessControl.php | +22 | −0 | Go to diff View file |
A | plugins/git/include/Git/HTTP/HTTPUserAccessKeyAuthenticator.php | +86 | −0 | Go to diff View file |
A | plugins/git/include/Git/HTTP/HTTPUserAccessKeyMisusageException.php | +37 | −0 | Go to diff View file |
M | plugins/git/include/gitPlugin.php | +28 | −4 | Go to diff View file |
M | plugins/git/phpunit/HTTP/HTTPAccessControlTest.php | +105 | −2 | Go to diff View file |
A | plugins/git/phpunit/HTTP/HTTPUserAccessKeyAuthenticatorTest.php | +135 | −0 | Go to diff View file |