Skip to content

Commit

Permalink
fix: debug token
Browse files Browse the repository at this point in the history
  • Loading branch information
mosoriob committed Dec 9, 2024
1 parent 948b03e commit 1b5bea7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckanext/oauth2/oauth2.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ def _compliance_fix(self, session):
"""Apply compliance hooks to the OAuth2 session."""
def _fix_access_token(response):
data = response.json()
log.debug(f"data: {data}")
if 'result' in data:

response._content = json.dumps(data['result']['access_token']).encode('utf-8')
return response

Expand Down

0 comments on commit 1b5bea7

Please sign in to comment.