title: "detail": "Authentication credentials were not provided."
body: <p>``I am trying to implement token authentication in my Django Rest Framework application. I am able to receive a token from the django server but when I send a request with 'Authorization' header, I receive the following error:</p>
  
  <p>{
      "detail": "Authentication credentials were not provided."
  }</p>
  
  <p>I have also checked the request.META and there is no key with name "HTTP_AUTHORIZATION". I am running my django app on development server.</p>
  
  <p><strong>Views.py</strong></p>
  
  <pre><code># Create your views here.
  from rest_framework.authentication import SessionAuthentication, BasicAuthentication
  from rest_framework.permissions import IsAuthenticated
  from rest_framework.response import Response
  from rest_framework.views import APIView
  from rest_framework.decorators import api_view,authentication_classes,permission_classes
  from django.contrib.auth.decorators import permission_required,login_required
  import google.cloud.storage
  import uuid
  import psycopg2
  
  
  @api_view(['GET'])
  @authentication_classes((SessionAuthentication, BasicAuthentication))
  @permission_classes((IsAuthenticated,))
  def auth_test(request):
      return Response("it's great to have you here with token auth!!")
  
  @api_view(['GET'])
  def free_test(request):
      #print(request.META['HTTP_AUTHORIZATION'])
      return Response("entry without token auth !!")
  </code></pre>
  
  <p>What is the reason that my authorization credentials are not received by django server? </p>
  
  <p>POSTMAN SCREENSHOT WHERE I HAVE PASSED THE AUTHORIZATION HEADER</p>
  
  <p><a href="https://i.stack.imgur.com/tPjcM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tPjcM.png" alt="screenshot"></a></p>