stable

Clone or download

Read-only

Make possible to introspect a personnal access key with a REST scope

A new REST endpoint is introduced to retrieve information about an access key: GET /access_keys/{id}. "self" or a specific key ID can be used for the {id} parameter. When "self" is given, information about the key used to authenticate are returned. This will allow external apps to determine easily if a key has the required scopes. Part of story #14019: automate jenkins job creation & run Change-Id: I19f6c9a5fa13bd346817d5577650312b11d67bf8

Modified Files

Name
A src/common/REST/AccessKeyHeaderExtractor.php +67 −0 Go to diff View file
M src/common/REST/UserManager.class.php +10 −18 Go to diff View file
M src/common/User/AccessKey/REST/AccessKeyResource.php +45 −2 Go to diff View file
A src/common/User/AccessKey/REST/UserAccessKeyRepresentationRetriever.php +84 −0 Go to diff View file
A tests/phpunit/common/REST/AccessKeyHeaderExtractorTest.php +73 −0 Go to diff View file
A tests/phpunit/common/User/AccessKey/REST/UserAccessKeyRepresentationRetrieverTest.php +167 −0 Go to diff View file
M tests/rest/tests/AccessKeyTest.php +22 −0 Go to diff View file