stable

Clone or download

Read-only

Extract scope notions from the access key implementation

Similar behaviors will be needed for the OAuth2 tokens code should be shared. No functionnal change is expected. Part of story #14542: have OAuth2 flow Change-Id: I412c047e912fdd8eea9c414c18146879b8645463

Modified Files

Name
M plugins/git/include/User/AccessKey/Scope/GitRepositoryAccessKeyScope.php +26 −13 Go to diff View file
M plugins/git/include/gitPlugin.php +4 −4 Go to diff View file
M plugins/git/phpunit/User/AccessKey/Scope/GitRepositoryAccessKeyScopeTest.php +2 −2 Go to diff View file
R src/common/User/AccessKey/Scope/AggregateAccessKeyScopeBuilder.php Go to diff View file
A src/common/Authentication/Scope/AuthenticationScope.php +57 −0 Go to diff View file
R src/common/User/AccessKey/Scope/AccessKeyScopeBuilder.php Go to diff View file
A src/common/Authentication/Scope/AuthenticationScopeBuilderCollectorEvent.php +33 −0 Go to diff View file
R src/common/User/AccessKey/Scope/AccessKeyScopeBuilderFromClassNames.php Go to diff View file
R src/common/User/AccessKey/Scope/AccessKeyScopeDefinition.php Go to diff View file
R src/common/User/AccessKey/Scope/AccessKeyScope.php Go to diff View file
M src/common/User/AccessKey/AccessKeyCreationController.php +7 −6 Go to diff View file
M src/common/User/AccessKey/AccessKeyCreationNotifier.php +3 −3 Go to diff View file
M src/common/User/AccessKey/AccessKeyCreator.php +2 −2 Go to diff View file
M src/common/User/AccessKey/AccessKeyDoesNotHaveRequiredScopeException.php +2 −2 Go to diff View file
M src/common/User/AccessKey/AccessKeyMetadata.php +7 −7 Go to diff View file
M src/common/User/AccessKey/AccessKeyScopePresenter.php +2 −2 Go to diff View file
M src/common/User/AccessKey/AccessKeyVerifier.php +3 −3 Go to diff View file
M src/common/User/AccessKey/REST/AccessKeyResource.php +7 −6 Go to diff View file
M src/common/User/AccessKey/REST/UserAccessKeyScopeRepresentation.php +2 −2 Go to diff View file
M src/common/User/AccessKey/Scope/AccessKeyScopeBuilderCollector.php +6 −8 Go to diff View file
M src/common/User/AccessKey/Scope/AccessKeyScopeIdentifier.php +6 −2 Go to diff View file
M src/common/User/AccessKey/Scope/AccessKeyScopePresenter.php +3 −1 Go to diff View file
M src/common/User/AccessKey/Scope/AccessKeyScopeRetriever.php +7 −4 Go to diff View file
M src/common/User/AccessKey/Scope/AccessKeyScopeSaver.php +3 −1 Go to diff View file
M src/common/User/AccessKey/Scope/CoreAccessKeyScopeBuilderFactory.php +5 −2 Go to diff View file
M src/common/User/AccessKey/Scope/RESTAccessKeyScope.php +27 −11 Go to diff View file
M src/common/User/REST/v1/UserResource.php +4 −3 Go to diff View file
M src/www/account/index.php +5 −4 Go to diff View file
A tests/phpunit/common/Authentication/Scope/AggregateAuthenticationScopeBuilderTest.php +132 −0 Go to diff View file
R tests/phpunit/common/User/AccessKey/Scope/AccessKeyScopeBuilderFromClassNamesTest.php Go to diff View file
R tests/phpunit/common/User/AccessKey/Scope/AccessKeyScopeThrowOnActualMethodCall.php Go to diff View file
A tests/phpunit/common/Authentication/Scope/AuthenticationTestScopeIdentifier.php +46 −0 Go to diff View file
M tests/phpunit/common/User/AccessKey/AccessKeyVerifierTest.php +14 −14 Go to diff View file
M tests/phpunit/common/User/AccessKey/Scope/AccessKeyScopeBuilderCollectorTest.php +9 −6 Go to diff View file
M tests/phpunit/common/User/AccessKey/Scope/AccessKeyScopeRetrieverTest.php +12 −9 Go to diff View file
M tests/phpunit/common/User/AccessKey/Scope/AccessKeyScopeSaverTest.php +3 −2 Go to diff View file
D tests/phpunit/common/User/AccessKey/Scope/AggregateAccessKeyScopeBuilderTest.php +0 −117 Go to diff View file
M tests/phpunit/common/User/AccessKey/Scope/CoreAccessKeyScopeBuilderFactoryTest.php +2 −1 Go to diff View file
M tests/phpunit/common/User/AccessKey/Scope/RESTAccessKeyScopeTest.php +2 −1 Go to diff View file