Skip to content
This repository has been archived by the owner on Jan 7, 2020. It is now read-only.

amrox/django-tastypie-two-legged-oauth

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

About

django-tastypie-two-legged-oauth is a simple 2-legged OAuth authentication model for Django Tastypie.

This nearly an exact copy of gregbayer/django-piston-two-legged-oauth, an OAuth connector for django-piston.

Dependencies:

Adapted from example:

Related discussions:

Example

# resources.py

from tastypie.resources import ModelResource
from tastypie.authorization import DjangoAuthorization
from django.contrib.auth.models import User
from authentication import TwoLeggedOAuthAuthentication

class UserResource(ModelResource):
	class Meta:
   		queryset = User.objects.all()
    	resource_name = 'users'
    	excludes = ['email', 'password', 'is_active', 'is_staff', 'is_superuser']
    	authorization = DjangoAuthorization()
    	authentication = TwoLeggedOAuthAuthentication()

About

Simple 2-legged OAuth authentication model for django tastypie.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%