Skip to content

Commit

Permalink
Merge pull request breatheco-de#1458 from jefer94/feat/google-auth
Browse files Browse the repository at this point in the history
add parse
  • Loading branch information
jefer94 authored Sep 11, 2024
2 parents 8f6648f + d9ece2e commit dc27c05
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion breathecode/authenticate/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -2012,7 +2012,10 @@ def get_google_token(request, token=None):
print("request.GET", request.GET)
print('request.query_params.get("url", None)', request.query_params.get("url", None))

url = request.query_params.get("url", None)
state = parse_qs(request.query_params.get("state", None))
print("state", state)

url = state.get("url", None)
if url == None:
raise ValidationException("No callback URL specified", slug="no-callback-url")

Expand Down

0 comments on commit dc27c05

Please sign in to comment.