Skip to content
Discussion options

You must be logged in to vote

I ran into this exact issue yesterday and was able to resolve it. I had set up my server with Azure Entra ID SAML authentication. When I enforced global login and disabled local user login, I encountered a redirect loop — the system kept redirecting between the homepage and the login URL.

The root cause appears to be that, with global login required and local login disabled, Django attempts to redirect users to the default local login page. Since that login method is unavailable, users are bounced back to the homepage, triggering the same redirect logic again — resulting in a loop.

To fix this, I specified the correct SAML authentication URL in my local settings. Here's what I did:

  1. My "…

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@lopmuj
Comment options

Answer selected by lopmuj
Comment options

You must be logged in to vote
1 reply
@Brets0150
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #1372 on September 11, 2025 12:03.