diff options
| author | Otto Yiu | 2012-10-31 21:27:21 -0700 | 
|---|---|---|
| committer | Otto Yiu | 2012-10-31 21:27:21 -0700 | 
| commit | 96dc9ce1ad15275944a5fd9389843a30c6aff3c6 (patch) | |
| tree | b59d960d298aedcd27e06065d3dab0ba79abb542 /docs/api-guide/authentication.md | |
| parent | 027c9079f62322fe933bdfd4438f23cf4848e3cc (diff) | |
| download | django-rest-framework-96dc9ce1ad15275944a5fd9389843a30c6aff3c6.tar.bz2 | |
Fixing documentation on auth/throttling guides
Diffstat (limited to 'docs/api-guide/authentication.md')
| -rw-r--r-- | docs/api-guide/authentication.md | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/docs/api-guide/authentication.md b/docs/api-guide/authentication.md index 889d16c0..3137b9d4 100644 --- a/docs/api-guide/authentication.md +++ b/docs/api-guide/authentication.md @@ -30,7 +30,7 @@ The default authentication policy may be set globally, using the `DEFAULT_AUTHEN      REST_FRAMEWORK = {          'DEFAULT_AUTHENTICATION_CLASSES': ( -            'rest_framework.authentication.UserBasicAuthentication', +            'rest_framework.authentication.BasicAuthentication',              'rest_framework.authentication.SessionAuthentication',          )      } @@ -38,7 +38,7 @@ The default authentication policy may be set globally, using the `DEFAULT_AUTHEN  You can also set the authentication policy on a per-view basis, using the `APIView` class based views.      class ExampleView(APIView): -        authentication_classes = (SessionAuthentication, UserBasicAuthentication) +        authentication_classes = (SessionAuthentication, BasicAuthentication)          permission_classes = (IsAuthenticated,)          def get(self, request, format=None): @@ -51,7 +51,7 @@ You can also set the authentication policy on a per-view basis, using the `APIVi  Or, if you're using the `@api_view` decorator with function based views.      @api_view(['GET']) -    @authentication_classes((SessionAuthentication, UserBasicAuthentication)) +    @authentication_classes((SessionAuthentication, BasicAuthentication))      @permissions_classes((IsAuthenticated,))      def example_view(request, format=None):          content = { | 
