stable

Clone or download

Read-only

Extract from the access token controller the section relative to the auth code

The same controller is going to manage the refresh token so to avoid having multiple responsabilities in the same class the section relative to the authorization code is extracted. No functionnal change. This is part of story #14542: have OAuth2 flow Change-Id: I1bd46d0e4aaded5c92fa6c85413717638094f215

Modified Files

Name
M plugins/oauth2_server/include/Grant/AccessTokenGrantController.php +17 −113 Go to diff View file
A plugins/oauth2_server/include/Grant/AccessTokenGrantErrorResponseBuilder.php +82 −0 Go to diff View file
A plugins/oauth2_server/include/Grant/AuthorizationCode/OAuth2GrantAccessTokenFromAuthorizationCode.php +132 −0 Go to diff View file
M plugins/oauth2_server/include/oauth2_serverPlugin.php +39 −29 Go to diff View file
M plugins/oauth2_server/phpunit/Grant/AccessTokenGrantControllerTest.php +19 −190 Go to diff View file
A plugins/oauth2_server/phpunit/Grant/AccessTokenGrantErrorResponseBuilderTest.php +70 −0 Go to diff View file
A plugins/oauth2_server/phpunit/Grant/AuthorizationCode/OAuth2GrantAccessTokenFromAuthorizationCodeTest.php +227 −0 Go to diff View file