Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Require authentication for facility CSV downloads and log requests #697

Merged
merged 5 commits into from
Jul 25, 2019

Commits on Jul 25, 2019

  1. Add DownloadLog model

    Records will be written to this table when an authenticated user downloads a CSV
    from the web client.
    jwalgran committed Jul 25, 2019
    Configuration menu
    Copy the full SHA
    082bc5a View commit details
    Browse the repository at this point in the history
  2. Add API endpoint to log download requests

    CSVs are compiled on the client side, so we did not have an existing endpoint
    to which we could attach the new logging code.
    jwalgran committed Jul 25, 2019
    Configuration menu
    Copy the full SHA
    5333470 View commit details
    Browse the repository at this point in the history
  3. Log facility CSV download request and prompt for auth

    Requiring authentication on the log endpoint effectively restricts downloads to
    registered users, which is what we want.
    
    Now that we are requiring users to log in before downloading a CSV we guide them
    to login/registration if they attempt to download without a session.
    jwalgran committed Jul 25, 2019
    Configuration menu
    Copy the full SHA
    74a0763 View commit details
    Browse the repository at this point in the history
  4. Remove extraneous parentheses from index reducer

    These were accidentally added.
    jwalgran committed Jul 25, 2019
    Configuration menu
    Copy the full SHA
    fd9d226 View commit details
    Browse the repository at this point in the history
  5. Update CHANGELOG

    jwalgran committed Jul 25, 2019
    Configuration menu
    Copy the full SHA
    8227563 View commit details
    Browse the repository at this point in the history