diff options
author | Zuul <zuul@review.opendev.org> | 2022-08-26 17:09:42 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2022-08-26 17:09:42 +0000 |
commit | 051aca8e8a488efc51817463dab8e4daafbbbf59 (patch) | |
tree | 3461f35f427879d2941ebd8037e710f4d1387baf /keystone/server/flask/request_processing/json_body.py | |
parent | 1dd6993d7b9b647810e6f495b62c37627c6e8658 (diff) | |
parent | b554576f62752ed8e89d8eb19136c318a4c89712 (diff) | |
download | keystone-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.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 |