stable

Clone or download

Read-only

List scopes granted to OAuth2 apps

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 should see the scopes "Demo" and "Project (read)" granted to the App. Change-Id: I94b021ff291fe7202fa7878bf6356a88276d175e

Modified Files

Name
M plugins/oauth2_server/include/AuthorizationServer/AuthorizationEndpointGetController.php +1 −5 Go to diff View file
M plugins/oauth2_server/include/User/Account/AccountAppPresenter.php +13 −2 Go to diff View file
M plugins/oauth2_server/include/User/Account/AppsPresenterBuilder.php +32 −7 Go to diff View file
M plugins/oauth2_server/include/User/AuthorizationComparator.php +8 −34 Go to diff View file
A plugins/oauth2_server/include/User/AuthorizedScopeFactory.php +74 −0 Go to diff View file
M plugins/oauth2_server/include/oauth2_serverPlugin.php +11 −4 Go to diff View file
M plugins/oauth2_server/phpunit/User/Account/AppsPresenterBuilderTest.php +89 −21 Go to diff View file
M plugins/oauth2_server/phpunit/User/AuthorizationComparatorTest.php +19 −59 Go to diff View file
A plugins/oauth2_server/phpunit/User/AuthorizedScopeFactoryTest.php +124 −0 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 +6 −0 Go to diff View file