Commit graph

14 commits

Author SHA1 Message Date
564a00d46d Finish login and registration flow
- add template for login page
- add logout URL
- display user information
2024-09-20 15:59:51 +02:00
6b3fce5684 Add basic template and design system
- implement base template and home page template
- add a rudimentary cats.css
- add CAcert logo and favicon resources
- use template in home page view
2024-09-20 13:06:43 +02:00
3f4e005cf3 Implement client certificate authentication
- add a cats.authentication.ClientCertificateBackend authentication
  backend implementation that extracts the used fields from a client
  certificate
- configure the AUTHENTICATION_BACKENDS setting to use the
  ClientCertificateBackend
- add cryptography dependency to parse certificate data
- add gunicorn as production dependency
- add a development configuration for Gunicorn
- document how to pass client certificate information via nginx reverse
  proxy
- add a certificate_login view and a basic home_page view and add
  corresponding URL patterns
- ignore PEM encoded files and temporary gunicorn files
2024-09-20 12:42:44 +02:00
0b7d001062 Cleanup data model 2024-09-20 10:57:25 +02:00
f41126894a Migrate data models to Django conventions
- add foreign keys
- rename foreign key fields
- rename tables to cats_*
2024-09-18 20:59:27 +02:00
35ae769e76 Model cleanup
- sort models by reference order
- change auto id fields
2024-09-18 18:52:51 +02:00
3a1796b1ed Make models managed 2024-09-18 18:35:06 +02:00
32bc919530 Add migration to convert tables to UTF-8
- convert all tables to utf8mb4 charset
- convert all tables to InnoDB
- set collation for all tables to utf8mb4_unicode_ci
2024-09-18 18:21:08 +02:00
77464ecee4 Add generated cats app
- generated app by running python3 manage.py startapp cats
- add cats to INSTALLED_APPS in django_cats/settings.py
- generated model by running python3 manage.py inspectdb >
  cats/models.py
- generated migration by running python3 manage.py makemigrations -n
  "models_created_by_inspectdb" cats
2024-09-18 18:20:59 +02:00
d2ac11f238 Setup RemoteUserAuthentication
- user will be authenticated using the reverse proxy in front of the
  CATS application
2024-09-18 18:20:59 +02:00
a62e85e670 Ignore temporary and editor files 2024-09-17 17:39:15 +02:00
1dc1310b9f Use environs to get settings 2024-09-17 17:37:36 +02:00
507af1df94 Add generated Django project code 2024-09-17 17:12:05 +02:00
045a3cd23a Add basic project files
- COPYING contains the GPL 3.0 license text
- README.md contains a short description of the project
- poetry.lock is the bill of material generated by poetry lock
- pyproject.toml describes the project for use with Poetry
2024-09-17 17:10:59 +02:00