def context(context, request_headers):
    """Return the Context object for passing to SecurityView.__call__()."""
    context.host = "via.hypothes.is"
    context.proxied_url = "https://example.com/foo"
    context.headers = []
    context.get_header.side_effect = request_headers.get
    context.query_params = {}
    return context