1 2 3 4 5 6 7 8 9 10 11 12 | from django_digest import HttpDigestAuthenticator
class HttpDigestAuthentication(object):
def __init__(self):
self._authenticator = HttpDigestAuthenticator()
def is_authenticated(self, request):
return self._authenticator.authenticate(request)
def challenge(self):
return self._authenticator.build_challenge_response()
|
More like this
- Support alternative authentication mechanisms with Piston by erikwright 3 years, 4 months ago
- Django authentication for django-piston by chronos 2 years, 8 months ago
- django piston use origin django auth by lettoo 1 year, 3 months ago
- Simple FastCGI authorizer view by cme 4 years, 7 months ago
- Simple REST APIs by jacobian 3 years, 8 months ago
Comments
Thanks a lot, could you please provide a short explanation how to integrate it? Thank you!
#
I tried it this way now:
but no authentication is required. Any ideas?
#
Works now - I had the credentials in the cache...
#
works
#