stable
Clone or download
Read-only
Each personal access key now has scopes associated with it. This will allow users to explicitely choose what the access key is going to be used for. The only visible change from this contribution is that the scopes associated with an access key can be seen in the response given by the REST endpoint GET /users/:id/access_keys. Part of story #14023: access Git repositories with a personal access key Change-Id: I81f23649f8f1bad43bb7f2f8fff4b2130e15513f
Modified Files
Name | ||||
---|---|---|---|---|
M | src/common/DB/DBTransactionExecutor.php | +6 | −0 | Go to diff View file |
M | src/common/User/AccessKey/AccessKeyCreationController.php | +6 | −0 | Go to diff View file |
M | src/common/User/AccessKey/AccessKeyCreator.php | +37 | −6 | Go to diff View file |
M | src/common/User/AccessKey/AccessKeyDAO.php | +14 | −5 | Go to diff View file |
M | src/common/User/AccessKey/AccessKeyMetadata.php | +32 | −3 | Go to diff View file |
M | src/common/User/AccessKey/AccessKeyMetadataRetriever.php | +16 | −3 | Go to diff View file |
M | src/common/User/AccessKey/REST/AccessKeyResource.php | +6 | −0 | Go to diff View file |
M | src/common/User/AccessKey/REST/UserAccessKeyRepresentation.php | +9 | −0 | Go to diff View file |
A | src/common/User/AccessKey/REST/UserAccessKeyScopeRepresentation.php | +41 | −0 | Go to diff View file |
A | src/common/User/AccessKey/Scope/AccessKeyScope.php | +36 | −0 | Go to diff View file |
A | src/common/User/AccessKey/Scope/AccessKeyScopeBuilder.php | +34 | −0 | Go to diff View file |
A | src/common/User/AccessKey/Scope/AccessKeyScopeDAO.php | +51 | −0 | Go to diff View file |
A | src/common/User/AccessKey/Scope/AccessKeyScopeIdentifier.php | +56 | −0 | Go to diff View file |
A | src/common/User/AccessKey/Scope/AccessKeyScopeRetriever.php | +63 | −0 | Go to diff View file |
A | src/common/User/AccessKey/Scope/AccessKeyScopeSaver.php | +54 | −0 | Go to diff View file |
A | src/common/User/AccessKey/Scope/CoreAccessKeyScopeBuilder.php | +38 | −0 | Go to diff View file |
A | src/common/User/AccessKey/Scope/InvalidScopeIdentifierKeyException.php | +36 | −0 | Go to diff View file |
A | src/common/User/AccessKey/Scope/NoValidAccessKeyScopeException.php | +33 | −0 | Go to diff View file |
A | src/common/User/AccessKey/Scope/RESTAccessKeyScope.php | +59 | −0 | Go to diff View file |
M | src/common/User/REST/v1/UserResource.php | +7 | −1 | Go to diff View file |
M | src/db/mysql/database_structure.sql | +6 | −0 | Go to diff View file |
A | src/db/mysql/updates/2019/201912301515_add_table_user_access_key_scope.php | +57 | −0 | Go to diff View file |
M | src/www/account/index.php | +7 | −1 | Go to diff View file |
A | tests/integration/tests/User/AccessKey/AccessKeyDAOTest.php | +84 | −0 | Go to diff View file |
M | tests/phpunit/common/User/AccessKey/AccessKeyCreatorTest.php | +18 | −7 | Go to diff View file |
A | tests/phpunit/common/User/AccessKey/Scope/AccessKeyScopeIdentifierTest.php | +42 | −0 | Go to diff View file |
A | tests/phpunit/common/User/AccessKey/Scope/AccessKeyScopeRetrieverTest.php | +89 | −0 | Go to diff View file |
A | tests/phpunit/common/User/AccessKey/Scope/AccessKeyScopeSaverTest.php | +68 | −0 | Go to diff View file |
A | tests/phpunit/common/User/AccessKey/Scope/CoreAccessKeyScopeBuilderTest.php | +56 | −0 | Go to diff View file |
A | tests/phpunit/common/User/AccessKey/Scope/RESTAccessKeyScopeTest.php | +43 | −0 | Go to diff View file |
M | tests/rest/tests/AccessKeyTest.php | +3 | −1 | Go to diff View file |