stable

Clone or download

Read-only

Make possible to have an OAuth2 server app attached to no project

To test you can set the column project_id of the plugin_oauth2_server_app table to null for one of the existing app. Part of story #17106: have OAuth2 apps at Site Level Change-Id: I90ac114501f6f3fe4d68ce17b007ca5317e101f8

Modified Files

Name
M plugins/oauth2_server/db/install.sql +1 −1 Go to diff View file
A plugins/oauth2_server/db/mysql/2020/202009250930_allow_server_app_no_project.php +45 −0 Go to diff View file
M plugins/oauth2_server/include/AccessToken/OAuth2AccessTokenDAO.php +4 −4 Go to diff View file
M plugins/oauth2_server/include/App/AppDao.php +4 −4 Go to diff View file
M plugins/oauth2_server/include/App/AppFactory.php +15 −9 Go to diff View file
M plugins/oauth2_server/include/App/OAuth2App.php +3 −3 Go to diff View file
M plugins/oauth2_server/include/AuthorizationServer/AuthorizationFormPresenter.php +6 −3 Go to diff View file
M plugins/oauth2_server/include/Grant/AuthorizationCode/OAuth2AuthorizationCodeDAO.php +2 −2 Go to diff View file
M plugins/oauth2_server/include/RefreshToken/OAuth2RefreshTokenDAO.php +4 −4 Go to diff View file
M plugins/oauth2_server/include/User/Account/AccountAppPresenter.php +2 −2 Go to diff View file
M plugins/oauth2_server/include/User/Account/AppsPresenterBuilder.php +6 −1 Go to diff View file
M plugins/oauth2_server/site-content/fr_FR/LC_MESSAGES/tuleap-oauth2_server.po +3 −0 Go to diff View file
M plugins/oauth2_server/templates/account-apps.mustache +1 −1 Go to diff View file
M plugins/oauth2_server/templates/authorization-form.mustache +13 −5 Go to diff View file
M plugins/oauth2_server/tests/unit/App/AppFactoryTest.php +24 −2 Go to diff View file
M plugins/oauth2_server/tests/unit/User/Account/AppsPresenterBuilderTest.php +19 −2 Go to diff View file