stable

Clone or download

Read-only

Add a 'read:user_membership' OAuth2 scope

This scope allows to get access to the user groups the suer is in. Access to GET /user_groups/:id is also granted by this scope to make the response of GET /users/:id/memberships usable by an external client. Part of story #14018: have a central management of users and groups using oauth Change-Id: I71ed6ec9b7387d0c1072c86d68ffe060fc14bd81

Modified Files

Name
M site-content/fr_FR/LC_MESSAGES/tuleap-core.po +6 −0 Go to diff View file
M src/common/Project/REST/v1/UserGroupResource.class.php +1 −0 Go to diff View file
M src/common/User/OAuth2/Scope/CoreOAuth2ScopeBuilderFactory.php +2 −1 Go to diff View file
A src/common/User/OAuth2/Scope/OAuth2UserMembershipScope.php +98 −0 Go to diff View file
M src/common/User/REST/v1/UserResource.php +1 −0 Go to diff View file
A tests/phpunit/common/User/OAuth2/Scope/OAuth2UserMembershipScopeTest.php +33 −0 Go to diff View file