예제 #1
0
def movesCallback():
    logging.debug("Request from user = %s" % request)
    logging.debug("Request.json from user = %s" % request.json)
    user_uuid = getUUID(request)
    if user_uuid is None:
        # Hack to support older clients that don't call register before calling movesCallback
        # Remove by Dec 31, 2014
        createUserProfile()
        user_uuid = getUUID(request)
    assert (user_uuid is not None)
    code = request.json['code']
    state = request.json['state']
    return auth.movesCallback(code, state, user_uuid)
예제 #2
0
def movesCallback():
  logging.debug("Request from user = %s" % request)
  logging.debug("Request.json from user = %s" % request.json)
  user_uuid = getUUID(request)
  if user_uuid is None:
    # Hack to support older clients that don't call register before calling movesCallback
    # Remove by Dec 31, 2014
    createUserProfile()
    user_uuid = getUUID(request)
  assert(user_uuid is not None)
  code = request.json['code']
  state = request.json['state']
  return auth.movesCallback(code, state, user_uuid)