diff options
Diffstat (limited to 'keystone/server/flask/request_processing/json_body.py')
-rw-r--r-- | keystone/server/flask/request_processing/json_body.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/keystone/server/flask/request_processing/json_body.py b/keystone/server/flask/request_processing/json_body.py index cce0763d3..746d88cfd 100644 --- a/keystone/server/flask/request_processing/json_body.py +++ b/keystone/server/flask/request_processing/json_body.py @@ -29,6 +29,13 @@ def json_body_before_request(): # exit if there is nothing to be done, (no body) if not flask.request.get_data(): return None + elif flask.request.path and flask.request.path.startswith( + '/v3/OS-OAUTH2/'): + # When the user makes a request to the OAuth2.0 token endpoint, + # the user should use the "application/x-www-form-urlencoded" format + # with a character encoding of UTF-8 in the HTTP request entity-body. + # At the scenario there is nothing to be done and exit. + return None try: # flask does loading for us for json, use the flask default loader |