stable

Clone or download

Read-only

Explicitely disable caching on the endpoint creating OAuth2 access tokens

Requests done against /plugins/oauth2_server/access_token receive a response with the headers Cache-Control and Pragma to disable the cache [0]. You can test with: shell> curl -I -X POST \ -H 'Content-Type: application/x-www-form-urlencoded' \ --data 'grant_type=authorization_code' \ https://tuleap.example.com/plugins/oauth2_server/access_token This is part of story #14542: have OAuth2 flow [0] https://tools.ietf.org/html/rfc6749#section-5.1 Change-Id: I864d5384977bfe485c68bcd92b38f55547440cf3

Modified Files

Name
M plugins/oauth2_server/include/oauth2_serverPlugin.php +3 −1 Go to diff View file
A src/common/Http/Server/DisableCacheMiddleware.php +38 −0 Go to diff View file
A tests/phpunit/common/Http/Server/DisableCacheMiddlewareTest.php +42 −0 Go to diff View file