Commit graph

9 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