Skip to content

Commit

Permalink
Debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
janbaykara authored Jul 15, 2022
1 parent 77e5305 commit 2fb5808
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/templatetags/setting.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,11 @@ def oauth_application_from_query(context):
next = request.GET.get('next', None)
if next is not None:
url_parts = urllib.parse.urlparse(next)
print("url_parts", url_parts)
params = urllib.parse.parse_qs(url_parts.query)
print("params", params)
client_id = params.get('client_id', None)
print("client_id", client_id)
if client_id is not None:
app = OAuthApp.filter(client_id=client_id).first()
return app
Expand Down

0 comments on commit 2fb5808

Please sign in to comment.