stable

Clone or download

Read-only

List authorized OAuth2 app in user settings

Part of story #14543 have OAuth2 user settings How to test: - Browse to your account settings. You should see a new tab "OAuth2 Apps" - When you visit this tab, there should be an empty state. - Create a new OAuth2 app in a project administration. - Access the authorization endpoint. '<client_id> and <redirect_uri> must be replaced. <redirect_uri> should be URL-encoded. https://tuleap.example.com/oauth2/authorize?client_id=<client_id>&state=xyz&response_type=code&scope=demo%20read:project&redirect_uri=<redirect_uri> - Authorize the app. - Visit again the "OAuth2 Apps" tab in your settings. You should see the App you just authorize and the project in which you registered it. Notes: Scopes granted to the app will be added in a later contribution. The "Revoke" button is disabled on purpose and will be handled later. Change-Id: I129aa4009008e8269295e0e2dfcaeaa65e3301e1

Modified Files

Name
M plugins/oauth2_server/include/App/AppDao.php +12 −0 Go to diff View file
M plugins/oauth2_server/include/App/AppFactory.php +20 −0 Go to diff View file
A plugins/oauth2_server/include/User/Account/AccountAppPresenter.php +49 −0 Go to diff View file
A plugins/oauth2_server/include/User/Account/AccountAppsController.php +110 −0 Go to diff View file
A plugins/oauth2_server/include/User/Account/AppsPresenter.php +51 −0 Go to diff View file
A plugins/oauth2_server/include/User/Account/AppsPresenterBuilder.php +59 −0 Go to diff View file
A plugins/oauth2_server/include/User/Account/AppsTabAdder.php +41 −0 Go to diff View file
M plugins/oauth2_server/include/oauth2_serverPlugin.php +24 −0 Go to diff View file
M plugins/oauth2_server/phpunit/App/AppFactoryTest.php +69 −0 Go to diff View file
A plugins/oauth2_server/phpunit/User/Account/AccountAppsControllerTest.php +95 −0 Go to diff View file
A plugins/oauth2_server/phpunit/User/Account/AppsPresenterBuilderTest.php +92 −0 Go to diff View file
A plugins/oauth2_server/phpunit/User/Account/AppsTabAdderTest.php +45 −0 Go to diff View file
M plugins/oauth2_server/site-content/fr_FR/LC_MESSAGES/tuleap-oauth2_server.po +16 −0 Go to diff View file
A plugins/oauth2_server/templates/account-apps.mustache +54 −0 Go to diff View file
A plugins/oauth2_server/themes/_user-preferences.scss +34 −0 Go to diff View file
A plugins/oauth2_server/themes/user-preferences-blue-condensed.scss +21 −0 Go to diff View file
A plugins/oauth2_server/themes/user-preferences-blue.scss +21 −0 Go to diff View file
A plugins/oauth2_server/themes/user-preferences-green-condensed.scss +21 −0 Go to diff View file
A plugins/oauth2_server/themes/user-preferences-green.scss +21 −0 Go to diff View file
A plugins/oauth2_server/themes/user-preferences-grey-condensed.scss +21 −0 Go to diff View file
A plugins/oauth2_server/themes/user-preferences-grey.scss +21 −0 Go to diff View file
A plugins/oauth2_server/themes/user-preferences-orange-condensed.scss +21 −0 Go to diff View file
A plugins/oauth2_server/themes/user-preferences-orange.scss +21 −0 Go to diff View file
A plugins/oauth2_server/themes/user-preferences-purple-condensed.scss +21 −0 Go to diff View file
A plugins/oauth2_server/themes/user-preferences-purple.scss +21 −0 Go to diff View file
A plugins/oauth2_server/themes/user-preferences-red-condensed.scss +21 −0 Go to diff View file
A plugins/oauth2_server/themes/user-preferences-red.scss +21 −0 Go to diff View file
M plugins/oauth2_server/webpack.common.js +4 −0 Go to diff View file