Skip to content

Commit

Permalink
API Key Creation & Management
Browse files Browse the repository at this point in the history
Added functionality for superusers and users to create and manage API keys, with Knox integration for secure key hashing.
  • Loading branch information
ygalnezri authored Jul 23, 2024
1 parent 7261942 commit 6bdd2f6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Watcher/Watcher/watcher/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@
'TOKEN_TTL': timedelta(hours=10),
}

KNOX_TOKEN_MODEL = 'knox.AuthToken'

MIDDLEWARE = [
'django.middleware.security.SecurityMiddleware',
'whitenoise.middleware.WhiteNoiseMiddleware',
Expand Down

0 comments on commit 6bdd2f6

Please sign in to comment.