stable

Clone or download

Read-only

Removing an OAuth2 also removes associated tokens and authorizations

To test you need to create an app and ask for some authorizations. Once the app is deleted there should be nothing left is the database about it. Part of story #14541: have OAuth2 project admin Change-Id: I5f4144b4aacdc0cf0562428015a21877d984c7d3

Modified Files

Name
A plugins/oauth2_server/include/App/OAuth2AppRemover.php +70 −0 Go to diff View file
M plugins/oauth2_server/include/Grant/AuthorizationCode/OAuth2AuthorizationCodeDAO.php +19 −4 Go to diff View file
M plugins/oauth2_server/include/ProjectAdmin/DeleteAppController.php +16 −7 Go to diff View file
M plugins/oauth2_server/include/User/AuthorizationDao.php +11 −0 Go to diff View file
A plugins/oauth2_server/phpunit/App/OAuth2AppRemoverTest.php +54 −0 Go to diff View file
M plugins/oauth2_server/phpunit/ProjectAdmin/DeleteAppControllerTest.php +8 −8 Go to diff View file