From 6bdd2f6d80a2292afbef58d1f66f5cf83f5dae34 Mon Sep 17 00:00:00 2001 From: Ygal Nezri <155719988+ygalnezri@users.noreply.github.com> Date: Tue, 23 Jul 2024 10:51:15 +0200 Subject: [PATCH] API Key Creation & Management Added functionality for superusers and users to create and manage API keys, with Knox integration for secure key hashing. --- Watcher/Watcher/watcher/settings.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Watcher/Watcher/watcher/settings.py b/Watcher/Watcher/watcher/settings.py index bcaaa8c..62154d1 100755 --- a/Watcher/Watcher/watcher/settings.py +++ b/Watcher/Watcher/watcher/settings.py @@ -155,6 +155,8 @@ 'TOKEN_TTL': timedelta(hours=10), } +KNOX_TOKEN_MODEL = 'knox.AuthToken' + MIDDLEWARE = [ 'django.middleware.security.SecurityMiddleware', 'whitenoise.middleware.WhiteNoiseMiddleware',