stable

Clone or download

Read-only

chore: Extract authorization form response building 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: Ia61fa9809be4059e682072f05a764d193bd9b570

Modified Files

Name
M plugins/oauth2_server/include/AuthorizationServer/AuthorizationEndpointController.php +11 −18 Go to diff View file
A plugins/oauth2_server/include/AuthorizationServer/OAuth2ConsentRequiredResponseBuilder.php +61 −0 Go to diff View file
M plugins/oauth2_server/include/oauth2_serverPlugin.php +8 −5 Go to diff View file
M plugins/oauth2_server/tests/unit/AuthorizationServer/AuthorizationEndpointControllerTest.php +16 −53 Go to diff View file
A plugins/oauth2_server/tests/unit/AuthorizationServer/OAuth2AuthorizationFormResponseBuilderTest.php +66 −0 Go to diff View file
A src/common/OAuth2ServerCore/AuthorizationServer/ConsentRequiredResponseBuilder.php +43 −0 Go to diff View file