stable

Clone or download

Read-only

chore: add app_type column in plugin_oauth2_server_app SQL table

This is part of story #24227: have private oauth2 endpoints for Mediawiki Mediawiki will be able to define its own OAuth2 apps. Before moving this SQL table to the core, we add the app_type column that will be able to destinguish between MW OAuth2 apps and other apps defined by the site administrators. Change-Id: I1068c19462122c2440ac919c6d4fe78b5508a9d5

Modified Files

Name
M plugins/oauth2_server/db/install.sql +1 −0 Go to diff View file
A plugins/oauth2_server/db/mysql/2022/202202071123_add_oauth2_server_app_type.php +45 −0 Go to diff View file
M plugins/oauth2_server/include/Administration/AddAppController.php +5 −2 Go to diff View file
M plugins/oauth2_server/include/App/AppDao.php +18 −9 Go to diff View file
M plugins/oauth2_server/include/App/AppFactory.php +17 −5 Go to diff View file
M plugins/oauth2_server/include/App/NewOAuth2App.php +18 −3 Go to diff View file
M plugins/oauth2_server/include/App/OAuth2App.php +2 −0 Go to diff View file
M plugins/oauth2_server/tests/integration/AccessToken/OAuth2AccessTokenDAOTest.php +4 −2 Go to diff View file
M plugins/oauth2_server/tests/integration/Grant/AuthorizationCode/OAuth2AuthorizationCodeDAOTest.php +4 −2 Go to diff View file
M plugins/oauth2_server/tests/integration/RefreshToken/OAuth2RefreshTokenDAOTest.php +4 −2 Go to diff View file
M plugins/oauth2_server/tests/unit/App/NewOAuth2AppTest.php +9 −6 Go to diff View file