stable

Clone or download

Read-only

Can specify scopes when creating an access key via the REST API

For now, the only valid scope is 'write:rest'. Part of story #14023: access Git repositories with a personal access key Change-Id: Ie0f1420207236fb0425c84647ed7b53cb6dd9cf7

Modified Files

Name
M src/common/User/AccessKey/AccessKeyCreationController.php +10 −1 Go to diff View file
M src/common/User/AccessKey/AccessKeyCreator.php +9 −8 Go to diff View file
M src/common/User/AccessKey/REST/AccessKeyPOSTRepresentation.php +12 −0 Go to diff View file
M src/common/User/AccessKey/REST/AccessKeyResource.php +28 −2 Go to diff View file
M src/common/User/AccessKey/Scope/AccessKeyScopeIdentifier.php +2 −0 Go to diff View file
M tests/phpunit/common/User/AccessKey/AccessKeyCreatorTest.php +2 −2 Go to diff View file
M tests/rest/tests/AccessKeyTest.php +47 −3 Go to diff View file