-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compatible with Django 3? #82
Comments
It should be compatible with Django 3, but I haven't wrote tests for that. I will add it to the todo list. |
for sure let me know! :) |
I'm on Django 3.1, trying to use Stronghold, it unfortunately appears to have no effect on access to my site. Do you have any tips for debugging @nh916? |
@thoward27 I have not used it yet. I was waiting to get a reply back that it works before i start trying it. if you do figure it out thought please feel free to post for anyone who might run into that problem in the future! |
@mgrouchy do you have any tips for figuring out why views may not be secured? |
Hello. |
I can say that I upgrade my application to django 3.1, and stronghold stopped working, downgrading django solved my problem. @drholera did you start from scratch? Or were you upgrading to 3.1? |
Yes, I started a new project from scratch. |
It is not working for me in django 3.1, I am using a custom backend and user model. |
@thoward27 @mgrouchy @christopherpickering I was having issues with Django 3.1 and think I found an issue. Django may have changed the default value for It appears that stronghold ignores the media URL (and everything under it) by default if it is set, causing none of my URLs to be protected after the upgrade. I haven't investigated this myself to verify older behavior of Django, but this could end up being a pretty substantial security issue for people that upgrade to Django 3.1 without a This is mostly up to @mgrouchy in regards to design, but I would disallow URLs of |
@mgrouchy I just downgraded to Django 3.0.3 and Oddly enough, when I set my MEDIA_URL to the empty string in 3.1, I still get the same behavior. However, setting it to @christopherpickering @thoward27 check if you have a |
Oops, one more side note. I may have jumped the gun on labeling this a possible security issue. It seems like the media URLs are only included as public URLs as a convenience in debug mode. This may likely not have an impact on production code. I have only ran my experiments in debug mode |
But Debug mode is not secure and any issues found during that are not the sec issue itself if You cant reproduce w/o it. |
@wesleykendall there is working for 3.1 and 3.2 fork of stronghold - django-require-login https://pypi.org/project/django-require-login/ |
I confirm that on Django v3.2.7 not having |
is this compatible with django 3.x?
also side question, would this play well with django allauth?
The text was updated successfully, but these errors were encountered: