Skip to content

Instantly share code, notes, and snippets.

View dandelauro's full-sized avatar

dan delauro dandelauro

  • sarasota, fl
  • 08:11 (UTC -04:00)
View GitHub Profile
# API authentication
from social.apps.django_app.utils import strategy
from rest_framework.authtoken.models import Token
from rest_framework.views import APIView
from rest_framework import parsers
from rest_framework import renderers
from rest_framework.authentication import get_authorization_header
from rest_framework.response import Response