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
NEZRI Ygal authored and NEZRI Ygal committed Jul 23, 2024
1 parent fc861b9 commit fb81f59
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Watcher/Watcher/watcher/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,12 +151,10 @@
}

REST_KNOX = {
'SECURE_HASH_ALGORITHM': 'hashlib.sha3_512',
'SECURE_HASH_ALGORITHM': 'cryptography.hazmat.primitives.hashes.SHA3_512',
'TOKEN_TTL': timedelta(hours=10),
}

KNOX_TOKEN_MODEL = 'knox.AuthToken'

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

0 comments on commit fb81f59

Please sign in to comment.