Skip to content

Commit

Permalink
remove prints
Browse files Browse the repository at this point in the history
  • Loading branch information
jefer94 committed Sep 11, 2024
1 parent b9a937a commit ca32e47
Showing 1 changed file with 0 additions and 38 deletions.
38 changes: 0 additions & 38 deletions breathecode/authenticate/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -2048,50 +2048,12 @@ async def save_google_token(request):
logger.debug("Google callback just landed")
logger.debug(request.query_params)

print(111111111111111111111)
print(111111111111111111111)
print(111111111111111111111)
print(111111111111111111111)
print(111111111111111111111)
print(111111111111111111111)
print(111111111111111111111)
print(111111111111111111111)
print(111111111111111111111)
print(111111111111111111111)
logger.info(111111111111111111111)
logger.info(111111111111111111111)
logger.info(111111111111111111111)
logger.info(111111111111111111111)
logger.info(111111111111111111111)
logger.info(111111111111111111111)
logger.info(111111111111111111111)
logger.info(111111111111111111111)
logger.info(111111111111111111111)
logger.info(111111111111111111111)

error = request.query_params.get("error", False)
print(error)
logger.info(error)
error_description = request.query_params.get("error_description", "")
print(error_description)
logger.info(error_description)
if error:
raise APIException("Google OAuth: " + error_description)

print("request.query_params", request.query_params)
logger.info("request.query_params")
logger.info(request.query_params)
print("request.GET", request.GET)
logger.info("request.GET")
logger.info(request.GET)
print('request.query_params.get("url", None)', request.query_params.get("url", None))
logger.info('request.query_params.get("url", None)')
logger.info(request.query_params.get("url", None))

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

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

0 comments on commit ca32e47

Please sign in to comment.