Add a setting to control WWW-Authenticate header behavior

This commit is contained in:
Roni Choudhury 2024-01-25 20:05:32 -05:00
parent ab694eccde
commit 1cd663cd68

View File

@ -78,6 +78,7 @@ DEFAULTS = {
# Authentication
'UNAUTHENTICATED_USER': 'django.contrib.auth.models.AnonymousUser',
'UNAUTHENTICATED_TOKEN': None,
'WWW_AUTHENTICATE_BEHAVIOR': 'first',
# View configuration
'VIEW_NAME_FUNCTION': 'rest_framework.views.get_view_name',