stable
Clone or download
Part of story #14543 have OAuth2 user settings How to test: - 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. - In your account settings, go to the "OAuth2 Apps" tab in your settings. - You can now click on the "Revoke access" button. It should open a confirmation modal. - The "Submit" button should be disabled in the modal. Actual revocation will come in a later contribution to ease reviews. Change-Id: Ia8bf8e3404af09d338bf479bf75806baae778a09
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/oauth2_server/include/User/Account/AccountAppsController.php | +5 | −6 | Go to diff View file |
M | plugins/oauth2_server/scripts/po/fr_FR.po | +5 | −0 | Go to diff View file |
A | plugins/oauth2_server/scripts/src/confirmation-modals.test.ts | +177 | −0 | Go to diff View file |
A | plugins/oauth2_server/scripts/src/confirmation-modals.ts | +99 | −0 | Go to diff View file |
D | plugins/oauth2_server/scripts/src/modals.test.ts | +0 | −195 | Go to diff View file |
D | plugins/oauth2_server/scripts/src/modals.ts | +0 | −96 | Go to diff View file |
M | plugins/oauth2_server/scripts/src/project-administration.ts | +26 | −5 | Go to diff View file |
A | plugins/oauth2_server/scripts/src/replacers.test.ts | +101 | −0 | Go to diff View file |
A | plugins/oauth2_server/scripts/src/replacers.ts | +55 | −0 | Go to diff View file |
A | plugins/oauth2_server/scripts/src/user-preferences.ts | +51 | −0 | Go to diff View file |
M | plugins/oauth2_server/site-content/fr_FR/LC_MESSAGES/tuleap-oauth2_server.po | +6 | −0 | Go to diff View file |
M | plugins/oauth2_server/templates/account-apps.mustache | +30 | −22 | Go to diff View file |
A | plugins/oauth2_server/templates/accounts-app-revoke-modal.mustache | +32 | −0 | Go to diff View file |
M | plugins/oauth2_server/themes/_user-preferences.scss | +6 | −7 | Go to diff View file |
M | plugins/oauth2_server/webpack.common.js | +10 | −6 | Go to diff View file |