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
Recursive login feedback #24
Comments
Hrm, wow. This is because your login page isn't marked as public. So what is happening is that when you install the middleware, it redirects you to your login page, which isn't public. Which then redirects you again back to the login page, so on and so on. I try to be smart about this and reverse both login/logout as part of the configuration process, if your login page is named something different you can add that to the STRONGHOLD_PUBLIC_NAMED_URLS setting or just mark the view as public using the @public decorator. Let me know if you continue to have issues. |
Oh lol that's so deeply embarrassing. Probably the stupidest mistake I've made in my computing career. I can't believe I didn't see it. |
No worries! Let me know if you run into any other issues! |
Hi @mgrouchy and @datakid , I am new to development, i am facing the similar issue with my django application. [20/Jul/2023 19:52:29] "GET /?next=/dashboard/%3Fnext%3D/%253Fnext%253D/dashboard/%25253Fnext%25253D/%2525253Fnext%2525253D/dashboard/%252525253Fnext%252525253D/%25252525253Fnext%25252525253D/dashboard/%2525252525253Fnext%2525252525253D/ HTTP/1.1" 302 0 Below is the functionality I am trying to impliment:-
i am able to achieve 1 and 2 but for 3rd throwing this error. It would be kind of you to help. |
When I enable Stronghold and then visit a page, I get what look like unescaped, recursive errors:
The text was updated successfully, but these errors were encountered: