summaryrefslogtreecommitdiff
path: root/keystone/server/flask/request_processing/json_body.py
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2022-08-26 17:09:42 +0000
committerGerrit Code Review <review@openstack.org>2022-08-26 17:09:42 +0000
commit051aca8e8a488efc51817463dab8e4daafbbbf59 (patch)
tree3461f35f427879d2941ebd8037e710f4d1387baf /keystone/server/flask/request_processing/json_body.py
parent1dd6993d7b9b647810e6f495b62c37627c6e8658 (diff)
parentb554576f62752ed8e89d8eb19136c318a4c89712 (diff)
downloadkeystone-051aca8e8a488efc51817463dab8e4daafbbbf59.tar.gz
Merge "OAuth2.0 Client Credentials Grant Flow Support"
Diffstat (limited to 'keystone/server/flask/request_processing/json_body.py')
-rw-r--r--keystone/server/flask/request_processing/json_body.py7
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