There are a couple of reasons why this can happen:
- Caching is enabled on the website.
When auto-redirect is enabled, the user is redirected to IDP login page and after logging in back to the main site but as caching is enables it redirects to the IDP login page hence a loop.
- HTTP/HTTPS discrepancy:
This happens when HTTPS is not enforced on the site but is configured on IDP side with HTTPS URL.This can be solved by enforcing HTTPS on the site by defining a redirect rule in the .htaccess file or at the Apache level.
- Cookie adulteration:
The cookie created by the plugin after logging in the user is altered by another plugin which causes the user to not log in DNN site but the session is created on IDP.