def make_oauth_protected_endpoint(*args, **kwargs):
  @oauth_scope(*args, **kwargs)
  def api_endpoint(access_token, request):
    """ A Dummy API endpoint that accepts no URL parameters.

    Always returns True.
    """
    return True

  return api_endpoint
Returns a dummy API endpoint that returns True. This endpoint will be
dataset/ETHPy150Open Locu/djoauth2/djoauth2/tests/test_endpoint.py/make_oauth_protected_endpoint