Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion flask_oauthlib/provider/oauth2.py
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,7 @@ def decorated(*args, **kwargs):
request.token = token

uri, http_method, body, headers = extract_params()
headers['OAUTH2_ADDITIONAL_ENDPOINT'] = True
ret = server.create_revocation_response(
uri, headers=headers, body=body, http_method=http_method)
return create_response(*ret)
Expand Down Expand Up @@ -606,7 +607,7 @@ def is_confidential(client):
return True
return getattr(client, 'is_confidential', False)
grant_types = ('password', 'authorization_code', 'refresh_token')
if request.grant_type in grant_types:
if request.grant_type in grant_types or 'OAUTH2_ADDITIONAL_ENDPOINT' in request.headers:
client = self._clientgetter(request.client_id)
return (not client) or is_confidential(client)
return False
Expand Down