stable

Clone or download

Read-only

chore: Move OAuth2 AppDao to core

This is part of story #24227: have private oauth2 endpoints for Mediawiki No functional change expected here. DAO and classes in dependency are moved in core. Change-Id: Icd233ba8282697f3baeff95aa48cacf7ed0972e4

Modified Files

Name
A plugins/oauth2_server/db/mysql/2022/202202081438_move_oidc_server_app_table_to_core.php +39 −0 Go to diff View file
M plugins/oauth2_server/include/AccessToken/OAuth2AccessTokenDAO.php +4 −4 Go to diff View file
M plugins/oauth2_server/include/AccessToken/OAuth2AccessTokenRevoker.php +1 −1 Go to diff View file
M plugins/oauth2_server/include/Administration/AddAppController.php +6 −6 Go to diff View file
M plugins/oauth2_server/include/Administration/AdminOAuth2AppsPresenterBuilder.php +3 −3 Go to diff View file
M plugins/oauth2_server/include/Administration/EditAppController.php +3 −3 Go to diff View file
M plugins/oauth2_server/include/Administration/OAuth2AppProjectVerifier.php +1 −1 Go to diff View file
M plugins/oauth2_server/include/App/AppFactory.php +9 −3 Go to diff View file
M plugins/oauth2_server/include/App/ClientSecretUpdater.php +1 −0 Go to diff View file
M plugins/oauth2_server/include/App/InvalidOAuth2AppSecretException.php +1 −0 Go to diff View file
M plugins/oauth2_server/include/App/LastGeneratedClientSecretStore.php +1 −0 Go to diff View file
M plugins/oauth2_server/include/App/OAuth2AppCredentialVerifier.php +3 −0 Go to diff View file
M plugins/oauth2_server/include/App/OAuth2AppNotFoundException.php +1 −0 Go to diff View file
M plugins/oauth2_server/include/App/OAuth2AppRemover.php +1 −0 Go to diff View file
M plugins/oauth2_server/include/App/OAuth2ClientIdentifierAndSecretMismatchException.php +1 −0 Go to diff View file
M plugins/oauth2_server/include/App/OAuth2MissingVerifierStringException.php +1 −0 Go to diff View file
M plugins/oauth2_server/include/AuthorizationServer/AuthorizationCodeResponseFactory.php +1 −1 Go to diff View file
M plugins/oauth2_server/include/AuthorizationServer/AuthorizationEndpointController.php +3 −3 Go to diff View file
M plugins/oauth2_server/include/AuthorizationServer/AuthorizationEndpointProcessConsentController.php +2 −2 Go to diff View file
M plugins/oauth2_server/include/AuthorizationServer/AuthorizationFormData.php +1 −1 Go to diff View file
M plugins/oauth2_server/include/AuthorizationServer/AuthorizationFormPresenter.php +1 −1 Go to diff View file
M plugins/oauth2_server/include/AuthorizationServer/PKCE/MissingMandatoryCodeChallengeException.php +1 −1 Go to diff View file
M plugins/oauth2_server/include/AuthorizationServer/PKCE/PKCEInformationExtractor.php +1 −1 Go to diff View file
M plugins/oauth2_server/include/Grant/AccessTokenGrantController.php +1 −1 Go to diff View file
M plugins/oauth2_server/include/Grant/AccessTokenGrantRepresentationBuilder.php +1 −1 Go to diff View file
M plugins/oauth2_server/include/Grant/AuthorizationCode/OAuth2AuthorizationCodeCreator.php +1 −1 Go to diff View file
M plugins/oauth2_server/include/Grant/AuthorizationCode/OAuth2AuthorizationCodeDAO.php +5 −5 Go to diff View file
M plugins/oauth2_server/include/Grant/AuthorizationCode/OAuth2GrantAccessTokenFromAuthorizationCode.php +1 −1 Go to diff View file
M plugins/oauth2_server/include/Grant/OAuth2ClientAuthenticationMiddleware.php +2 −2 Go to diff View file
M plugins/oauth2_server/include/Grant/RefreshToken/OAuth2GrantAccessTokenFromRefreshToken.php +1 −1 Go to diff View file
M plugins/oauth2_server/include/Grant/TokenRevocationController.php +1 −1 Go to diff View file
M plugins/oauth2_server/include/OpenIDConnect/IDToken/OpenIDConnectIDTokenCreator.php +2 −2 Go to diff View file
M plugins/oauth2_server/include/RefreshToken/OAuth2RefreshTokenDAO.php +2 −2 Go to diff View file
M plugins/oauth2_server/include/RefreshToken/OAuth2RefreshTokenDoesNotCorrespondToExpectedAppException.php +1 −1 Go to diff View file
M plugins/oauth2_server/include/RefreshToken/OAuth2RefreshTokenRevoker.php +1 −1 Go to diff View file
M plugins/oauth2_server/include/RefreshToken/OAuth2RefreshTokenVerifier.php +1 −1 Go to diff View file
M plugins/oauth2_server/include/User/Account/AppsPresenterBuilder.php +1 −1 Go to diff View file
M plugins/oauth2_server/include/User/AuthorizationComparator.php +1 −1 Go to diff View file
M plugins/oauth2_server/include/User/AuthorizationDao.php +2 −2 Go to diff View file
M plugins/oauth2_server/include/User/AuthorizedScopeFactory.php +1 −1 Go to diff View file
M plugins/oauth2_server/include/oauth2_serverPlugin.php +1 −1 Go to diff View file
M plugins/oauth2_server/tests/integration/AccessToken/OAuth2AccessTokenDAOTest.php +2 −2 Go to diff View file
M plugins/oauth2_server/tests/integration/Grant/AuthorizationCode/OAuth2AuthorizationCodeDAOTest.php +2 −2 Go to diff View file
M plugins/oauth2_server/tests/integration/RefreshToken/OAuth2RefreshTokenDAOTest.php +2 −2 Go to diff View file
M plugins/oauth2_server/tests/unit/AccessToken/OAuth2AccessTokenRevokerTest.php +1 −1 Go to diff View file
M plugins/oauth2_server/tests/unit/Administration/AddAppControllerTest.php +2 −2 Go to diff View file
M plugins/oauth2_server/tests/unit/Administration/AdminOAuth2AppsPresenterBuilderTest.php +2 −2 Go to diff View file
M plugins/oauth2_server/tests/unit/Administration/EditAppControllerTest.php +2 −2 Go to diff View file
M plugins/oauth2_server/tests/unit/Administration/OAuth2AppProjectVerifierTest.php +1 −1 Go to diff View file
M plugins/oauth2_server/tests/unit/App/AppFactoryTest.php +3 −0 Go to diff View file
M plugins/oauth2_server/tests/unit/App/ClientSecretUpdaterTest.php +1 −0 Go to diff View file
M plugins/oauth2_server/tests/unit/App/OAuth2AppCredentialVerifierTest.php +3 −0 Go to diff View file
M plugins/oauth2_server/tests/unit/App/OAuth2AppRemoverTest.php +1 −0 Go to diff View file
M plugins/oauth2_server/tests/unit/AuthorizationServer/AuthorizationCodeResponseFactoryTest.php +1 −1 Go to diff View file
M plugins/oauth2_server/tests/unit/AuthorizationServer/AuthorizationEndpointControllerTest.php +2 −2 Go to diff View file
M plugins/oauth2_server/tests/unit/AuthorizationServer/AuthorizationEndpointProcessConsentControllerTest.php +2 −2 Go to diff View file
M plugins/oauth2_server/tests/unit/AuthorizationServer/AuthorizationFormPresenterBuilderTest.php +1 −1 Go to diff View file
M plugins/oauth2_server/tests/unit/AuthorizationServer/AuthorizationFormRendererTest.php +1 −1 Go to diff View file
M plugins/oauth2_server/tests/unit/AuthorizationServer/PKCE/PKCEInformationExtractorTest.php +1 −1 Go to diff View file
M plugins/oauth2_server/tests/unit/Grant/AccessTokenGrantControllerTest.php +1 −1 Go to diff View file
M plugins/oauth2_server/tests/unit/Grant/AccessTokenGrantRepresentationBuilderTest.php +1 −1 Go to diff View file
M plugins/oauth2_server/tests/unit/Grant/AuthorizationCode/OAuth2AuthorizationCodeCreatorTest.php +1 −1 Go to diff View file
M plugins/oauth2_server/tests/unit/Grant/AuthorizationCode/OAuth2GrantAccessTokenFromAuthorizationCodeTest.php +1 −1 Go to diff View file
M plugins/oauth2_server/tests/unit/Grant/OAuth2ClientAuthenticationMiddlewareTest.php +1 −1 Go to diff View file
M plugins/oauth2_server/tests/unit/Grant/RefreshToken/OAuth2GrantAccessTokenFromRefreshTokenTest.php +1 −1 Go to diff View file
M plugins/oauth2_server/tests/unit/Grant/TokenRevocationControllerTest.php +1 −1 Go to diff View file
M plugins/oauth2_server/tests/unit/OpenIDConnect/IDToken/OpenIDConnectIDTokenCreatorTest.php +1 −1 Go to diff View file
M plugins/oauth2_server/tests/unit/RefreshToken/OAuth2RefreshTokenRevokerTest.php +1 −1 Go to diff View file
M plugins/oauth2_server/tests/unit/RefreshToken/OAuth2RefreshTokenVerifierTest.php +1 −1 Go to diff View file
M plugins/oauth2_server/tests/unit/User/Account/AppsPresenterBuilderTest.php +1 −1 Go to diff View file
M plugins/oauth2_server/tests/unit/User/AuthorizationComparatorTest.php +1 −1 Go to diff View file
M plugins/oauth2_server/tests/unit/User/AuthorizedScopeFactoryTest.php +1 −1 Go to diff View file
R plugins/oauth2_server/include/App/AppDao.php Go to diff View file
R plugins/oauth2_server/include/App/ClientIdentifier.php Go to diff View file
R plugins/oauth2_server/include/App/InvalidAppDataException.php Go to diff View file
R plugins/oauth2_server/include/App/InvalidClientIdentifierKey.php Go to diff View file
R plugins/oauth2_server/include/App/LastGeneratedClientSecret.php Go to diff View file
R plugins/oauth2_server/include/App/NewOAuth2App.php Go to diff View file
R plugins/oauth2_server/include/App/OAuth2App.php Go to diff View file
M src/db/mysql/database_structure.sql +11 −0 Go to diff View file
A src/db/mysql/updates/2022/202202081433_create_oauth2_server_app_table.php +46 −0 Go to diff View file
R plugins/oauth2_server/tests/unit/App/ClientIdentifierTest.php Go to diff View file
R plugins/oauth2_server/tests/unit/App/NewOAuth2AppTest.php Go to diff View file
R plugins/oauth2_server/tests/unit/App/OAuth2AppTest.php Go to diff View file