Skip to content

Instantly share code, notes, and snippets.

View dandelauro's full-sized avatar
🍄

dan delauro dandelauro

🍄
  • sarasota, fl
  • 00:32 (UTC -05: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