Skip to content

Commit 1cd663c

Browse files
committed
Add a setting to control WWW-Authenticate header behavior
1 parent ab694ec commit 1cd663c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rest_framework/settings.py

+1
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@
7878
# Authentication
7979
'UNAUTHENTICATED_USER': 'django.contrib.auth.models.AnonymousUser',
8080
'UNAUTHENTICATED_TOKEN': None,
81+
'WWW_AUTHENTICATE_BEHAVIOR': 'first',
8182

8283
# View configuration
8384
'VIEW_NAME_FUNCTION': 'rest_framework.views.get_view_name',

0 commit comments

Comments
 (0)