def view_kwargs(check_url):
    """Return a dict of valid kwargs to pass to SecurityView(**view_kwargs)."""
    return {
        "allow_all": False,
        "allowed_referrers": ["lms.hypothes.is"],
        "authentication_required": True,
        "check_url": check_url,
    }