stable
Clone or download
Read-only
All the OAuth2 flow must be done over TLS. All recents Tuleap deployments are HTTPS only by default. This contribution makes sure this cannot be bypassed. To do a functionnal test, you need to adapt the nginx configuration to allow HTTP connections and then call with a POST request '/plugins/oauth2_server/access_token'. This is part of story #14542: have OAuth2 flow Change-Id: I0b1d863c69b0a10a4d290397483ee287e6b807e8
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/oauth2_server/include/oauth2_serverPlugin.php | +10 | −4 | Go to diff View file |
M | src/common/Http/HTTPFactoryBuilder.php | +7 | −0 | Go to diff View file |
A | src/common/Http/Server/RejectNonHTTPSRequestMiddleware.php | +58 | −0 | Go to diff View file |
A | tests/phpunit/common/Http/Server/RejectNonHTTPSRequestMiddlewareTest.php | +74 | −0 | Go to diff View file |