stable

Clone or download

Read-only

chore: Extract consent required check in a dedicated objet

This is part of story #24227: have private oauth2 endpoints for Mediawiki No functional change expected here. Adding this interface will allow other plugins (Mediawiki) to have its own checks. Change-Id: Ia7917e889b7132a0954fe9877e88ffe9ac985043

Modified Files

Name
M plugins/oauth2_server/include/AuthorizationServer/AuthorizationEndpointController.php +3 −38 Go to diff View file
A plugins/oauth2_server/include/AuthorizationServer/OAuth2ConsentChecker.php +59 −0 Go to diff View file
M plugins/oauth2_server/include/oauth2_serverPlugin.php +11 −8 Go to diff View file
M plugins/oauth2_server/tests/unit/AuthorizationServer/AuthorizationEndpointControllerTest.php +36 −51 Go to diff View file
A plugins/oauth2_server/tests/unit/AuthorizationServer/OAuth2ConsentCheckerTest.php +161 −0 Go to diff View file
A src/common/OAuth2ServerCore/AuthorizationServer/ConsentChecker.php +36 −0 Go to diff View file