title: Django Rest Framework JWT "Authentication credentials were not provided."}
body: <p>I am trying to write a simple API that uses JWT tokens to authenticate.</p>
  
  <p>My <code>settings.py</code>:</p>
  
  <pre><code>INSTALLED_APPS = [
      'django.contrib.admin',
      'django.contrib.auth',
      'django.contrib.contenttypes',
      'django.contrib.sessions',
      'django.contrib.messages',
      'django.contrib.staticfiles',
      'rest_framework',
  ]
  REST_FRAMEWORK = {
      'DEFAULT_PERMISSION_CLASSES': (
          'rest_framework.permissions.IsAuthenticated',
          'rest_framework.permissions.IsAdminUser'
      ),
      'DEFAULT_AUTHENTICATION_CLASSES': (
          'rest_framework_jwt.authentication.JSONWebTokenAuthentication',
          'rest_framework.authentication.SessionAuthentication',
          'rest_framework.authentication.BasicAuthentication',
      ),
     'PAGE_SIZE': 10
  }
  </code></pre>
  
  <p>And my View looks like this:</p>
  
  <pre><code>class ExampleView(APIView):
      permission_classes = (IsAuthenticated,)
      authentication_classes = (JSONWebTokenAuthentication,)
  
      def get(self, request, format=None):
          return JsonResponse({"username":str(request.user)})
  </code></pre>
  
  <p>Which really does nothing, but I don't even get there. I have registered the JWT Token provider as in the documentation with <code>url(r'^api-token-auth/', obtain_jwt_token)</code> and I receive a token when I call this endpoint.</p>
  
  <p>However, when I then make a request against my APIView (which contains the header <code>Authorization: JWT &lt;my_token&gt;</code> I always receive the following error:</p>
  
  <p><code>[Response]:  403   [Data]:  {"detail":"Authentication credentials were not provided."}</code></p>
  
  <p>What am I missing? Thanks in advance!</p>