mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-30 21:44:04 +03:00
Add a setting to control WWW-Authenticate header behavior
This commit is contained in:
parent
ab694eccde
commit
1cd663cd68
|
@ -78,6 +78,7 @@ DEFAULTS = {
|
||||||
# Authentication
|
# Authentication
|
||||||
'UNAUTHENTICATED_USER': 'django.contrib.auth.models.AnonymousUser',
|
'UNAUTHENTICATED_USER': 'django.contrib.auth.models.AnonymousUser',
|
||||||
'UNAUTHENTICATED_TOKEN': None,
|
'UNAUTHENTICATED_TOKEN': None,
|
||||||
|
'WWW_AUTHENTICATE_BEHAVIOR': 'first',
|
||||||
|
|
||||||
# View configuration
|
# View configuration
|
||||||
'VIEW_NAME_FUNCTION': 'rest_framework.views.get_view_name',
|
'VIEW_NAME_FUNCTION': 'rest_framework.views.get_view_name',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user