stable

Clone or download

Read-only

Reject requests to grant an OAuth2 access token with a not supported grant type

For now the only expected grant type is `authorization_code` anything else is rejected. You can test as follow: shell> curl -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 Change-Id: I3f97f21a4d5bca17003ce4c8e2a8075c32a8d3c0

Modified Files

Name
M plugins/oauth2_server/include/Grant/AuthCodeGrantController.php +31 −1 Go to diff View file
M plugins/oauth2_server/phpunit/Grant/AuthCodeGrantControllerTest.php +52 −9 Go to diff View file