Django snippets: Support alternative authentication mechanisms with Piston
http://djangosnippets.org/snippets/1871
"This snippet for Piston allows you to offer a choice of authentication methods to clients."