Skip to content

Commit

Permalink
fix: compatibility to oauthlib
Browse files Browse the repository at this point in the history
  • Loading branch information
utnapischtim committed Dec 12, 2024
1 parent 58ab11a commit 9392e39
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions flask_oauthlib/provider/oauth2.py
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,11 @@ def your_handler():
return jsonify(status='error')
"""
uri, http_method, body, headers = extract_params()
try:
# compatibility to oauthlib
headers["Authorization"] = str(headers["Authorization"])
except KeyError:
pass
return self.server.verify_request(
uri, http_method, body, headers, scopes
)
Expand Down

0 comments on commit 9392e39

Please sign in to comment.