title: Authorization Credentials Stripped --- django, elastic beanstalk, oauth
body: <p>I implemented a REST api in django with django-rest-framework and used oauth2 for authentication.</p>
  
  <p>I tested with:</p>
  
  <pre><code>curl -X POST -d "client_id=YOUR_CLIENT_ID&amp;client_secret=YOUR_CLIENT_SECRET&amp;grant_type=password&amp;username=YOUR_USERNAME&amp;password=YOUR_PASSWORD" http://localhost:8000/oauth2/access_token/
  </code></pre>
  
  <p>and</p>
  
  <pre><code>curl -H "Authorization: Bearer &lt;your-access-token&gt;" http://localhost:8000/api/
  </code></pre>
  
  <p>on localhost with successful results consistent with the documentation.</p>
  
  <p>When pushing this up to an existing AWS elastic beanstalk instance, I received:</p>
  
  <pre><code>{ "detail" : "Authentication credentials were not provided." }
  </code></pre>