django-sanction is a wrapper for the sanction OAuth2 client library.

High level features include:

Provider agnostic: There is no assumption made about what providers should
be accounted for (as in the core sanction module). This means that while
providers that follow the OAuth 2 spec should be handled by default,
deviant providers may have to have custom implementations for certain
handlers (see stackexchange and facebook examples in the examples
directory). This also means that the user may need to have at least a basic
understanding of OAuth 2 and provider implementations. However, the upside
is that the library is flexible in that library maintenance does not need
to occur in order to support new OAuth 2 providers as they come out of the
woodwork.

Persistence agnostic:django_sanction doesn't care if you use the provided
django_sanction.models.User model (which is an extension of the
contrib.auth User model) or a custom nonrel user class, as long as a few
required attributes exist on the model

Flexible: While most functionality is accounted for and provided out of the
box, django_sanction is flexible where it makes sense to be.

Security: By default, django-sanction uses CSRF protection to make
authorization as secure as the spec allows for.

Modular: django-sanction is meant to be an OAuth 2 client and will only be
an OAuth 2 client. It is not the kitchen sink of
authentication/authorization.

Oh, did I mention that the entire sanction client library is 65 LOC and
django-sanction (including models, middleware, etc) is slightly over 200?
That makes the entire thing pretty easy to grok, even for a beginner (imho).

96% test coverage and functional examples are included. However, it's
lightly tested, so feedback and bug reports are appreciated.

Enjoy (hopefully) :)

https://github.com/demianbrecht/django-sanction

(Will be released on PyPi shortly)

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to