def retrieve_user_from_dropbox(response):
  auth_id = 'dropbox_%s' % response['uid']
  user_db = model.User.get_by('auth_ids', auth_id)
  if user_db:
    return user_db

  return auth.create_user_db(
    auth_id=auth_id,
    name=response['display_name'],
    username=response['display_name'],
  )
dataset/ETHPy150Open gae-init/gae-init-debug/main/auth/dropbox.py/retrieve_user_from_dropbox/original