duosecurity/duo_python — Issue #1: django @duo_auth.duo_auth_required not working
Author: jsykora
Created: 2011-11-10 22:01:49+00:00
State: open

I noticed in the example app that the urls.py use duo_private_manual view for both of the urls "/duo/duo_private/" and "/duo/duo_private_manual/". When I tried to use the duo_private view which uses the @duo_auth.duo_auth_required decorator, I get an error "'function' object has no attribute 'has_header'".

I think there is either a problem with the decorator, or if it's just my system, maybe we can come up with a solution to put in the readme for others to avoid.

FYI the manual mode does work correctly.

I'll look into some more on my end but I've not done much work with custom decorators.