Open megies opened 6 years ago
django has no HTTP digest authentication which is used by the fdsnws services and thus it does not work with ObsPy.
It should work fine if you for example just use requests which can also use basic auth.
I agree that this needs to be changed but I'm not entirely sure how to be honest. This (https://github.com/dimagi/django-digest) seems really outdated but it has seen some work recently.
@barsch Do you have any idea how to easily add digest authentication to a django app?
Why not using requests? It supports HTTP digest authentication http://docs.python-requests.org/en/master/user/authentication/#digest-authentication
btw: I would not mix Jane/Django auth and FDSN auth
This would only be client side, no? We do need server side digest authentication. And we already mix django and fdsn auth as the /queryauth
routes in the fdnsws implementation work fine for example with basic auth.
We could of course easily support basic auth on the obspy side but this would not be fully standard compliant.
I see - django-digest had some activity 3 days ago - so I would at least give it a try - never needed digest authentication in Django projects before ...
..while anonymous requests return the waveform data..
CC @jwassermann