stable

Clone or download

Read-only

Enforce the type of action for which a Git LFS action can be requested

This contribution makes sure that authorization for a Git LFS action can only be requested for known actions. No functionnal change is expected. This is part of story #12322: have git-lfs batch and basic transfer API Change-Id: Iab868938ab7312481acd319aaa463df043872dd3

Modified Files

Name
M plugins/gitlfs/include/Authorization/Action/ActionAuthorizationRequest.php +4 −3 Go to diff View file
M plugins/gitlfs/include/Authorization/Action/ActionAuthorizationTokenCreator.php +1 −1 Go to diff View file
M plugins/gitlfs/include/Authorization/Action/ActionAuthorizationVerifier.php +3 −2 Go to diff View file
A plugins/gitlfs/include/Authorization/Action/Type/ActionAuthorizationType.php +29 −0 Go to diff View file
A plugins/gitlfs/include/Authorization/Action/Type/ActionAuthorizationTypeUpload.php +29 −0 Go to diff View file
M plugins/gitlfs/include/Batch/Response/BatchSuccessfulResponseBuilder.php +4 −2 Go to diff View file
M plugins/gitlfs/include/Transfer/Basic/LFSBasicTransferUploadController.php +2 −1 Go to diff View file
M plugins/gitlfs/phpunit/Authorization/Action/ActionAuthorizationTokenCreatorTest.php +3 −1 Go to diff View file
M plugins/gitlfs/phpunit/Authorization/Action/ActionAuthorizationVerifierTest.php +18 −10 Go to diff View file