1. 04 Jul, 2022 4 commits
  2. 01 Jul, 2022 2 commits
  3. 23 Jun, 2022 2 commits
    • Igor Ponomarev's avatar
      Introduce `REQUIRE_LOGIN` setting and document it · de4373d9
      Igor Ponomarev authored and Sjoerd Simons's avatar Sjoerd Simons committed
      It will activate the require login middleware if set to true.
      de4373d9
    • Igor Ponomarev's avatar
      Create `LavaRequireLoginMiddleware` middleware · d554ad31
      Igor Ponomarev authored and Sjoerd Simons's avatar Sjoerd Simons committed
      It will make it a requirement to be logged in for any page
      other than home "/", static files "/static/" or login page
      "/accounts/login".
      
      The middleware can be activated by altering `MIDDLEWARE`
      configuration variable.
      
      For example:
      
      File: `/etc/lava-server/settings.d/middleware.yaml`
      
      Contents:
      ```yaml
      ---
      MIDDLEWARE:
        - django.middleware.security.SecurityMiddleware
        - whitenoise.middleware.WhiteNoiseMiddleware
        - django.contrib.sessions.middleware.SessionMiddleware
        - django.middleware.common.CommonMiddleware
        - django.middleware.csrf.CsrfViewMiddleware
        - django.contrib.auth.middleware.AuthenticationMiddleware
        - django.contrib.messages.middleware.MessageMiddleware
        - django.middleware.clickjacking.XFrameOptionsMiddleware
        - lava_server.security.LavaRequireLoginMiddleware
      ```
      d554ad31
  4. 25 May, 2022 1 commit
  5. 23 May, 2022 11 commits
  6. 18 May, 2022 5 commits
  7. 13 May, 2022 15 commits