stable

Clone or download

Read-only

Make the split token pattern reusable accross Tuleap parts

Git LFS implementation is going to need a similar pattern for: * authenticate actions * authenticate users coming from SSH and needing to do LFS operations This contribution is only a refactoring to extract the split token pattern from the access keys, no functionnal changes are expected. This is part of story #12322: have git-lfs batch and basic transfer API Change-Id: I578b51d3da8dbe6696830c3a79f9115cad62da74

Modified Files

Name
R src/common/User/AccessKey/IncorrectSizeVerificationStringException.php Go to diff View file
R src/common/User/AccessKey/InvalidIdentifierFormatException.php Go to diff View file
A src/common/Authentication/SplitToken/SplitToken.php +55 −0 Go to diff View file
A src/common/Authentication/SplitToken/SplitTokenException.php +25 −0 Go to diff View file
A src/common/Authentication/SplitToken/SplitTokenFormatter.php +31 −0 Go to diff View file
A src/common/Authentication/SplitToken/SplitTokenIdentifierTranslator.php +33 −0 Go to diff View file
R src/common/User/AccessKey/AccessKeyVerificationString.php Go to diff View file
R src/common/User/AccessKey/AccessKeyVerificationStringHasher.php Go to diff View file
M src/common/REST/RESTAuthenticationFlowIsAllowed.php +3 −0 Go to diff View file
M src/common/REST/UserManager.class.php +17 −7 Go to diff View file
D src/common/User/AccessKey/AccessKey.php +0 −85 Go to diff View file
M src/common/User/AccessKey/AccessKeyCreationController.php +3 −1 Go to diff View file
M src/common/User/AccessKey/AccessKeyCreator.php +9 −5 Go to diff View file
A src/common/User/AccessKey/AccessKeySerializer.php +50 −0 Go to diff View file
M src/common/User/AccessKey/AccessKeyVerifier.php +7 −4 Go to diff View file
M src/common/User/AccessKey/LastAccessKeyIdentifierStore.php +15 −5 Go to diff View file
M src/common/User/AccessKey/REST/AccessKeyResource.php +4 −2 Go to diff View file
M src/www/account/index.php +1 −0 Go to diff View file
R tests/phpunit/common/User/AccessKey/AccessKeyVerificationStringHasherTest.php Go to diff View file
R tests/phpunit/common/User/AccessKey/AccessKeyVerificationStringTest.php Go to diff View file
M tests/phpunit/common/User/AccessKey/AccessKeyCreatorTest.php +2 −1 Go to diff View file
R tests/phpunit/common/User/AccessKey/AccessKeyTest.php Go to diff View file
M tests/phpunit/common/User/AccessKey/AccessKeyVerifierTest.php +8 −5 Go to diff View file
M tests/phpunit/common/User/AccessKey/LastAccessKeyIdentifierStoreTest.php +13 −10 Go to diff View file
M tests/phpunit/phpunit.xml +1 −0 Go to diff View file