def auth_info_view(request):
    # TODO: insecure URL, must be protected behind a firewall
    storage = request.registry.velruse_store
    token = request.GET.get('token')
    try:
        return storage.retrieve(token)
    except __HOLE__:
        log.info('auth_info requested invalid token "%s"')
        request.response.status = 400
        return None
dataset/ETHPy150Open bbangert/velruse/velruse/app/__init__.py/auth_info_view