My test configuration was successful but when I try to log in I am stuck in a redirect loop.

150 views April 2, 2019 October 22, 2019 somshekhar 0

There are a couple of reasons why this can happen:

1. 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.

2.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.

3.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 Drupal site but the session is created on IDP.

Was this helpful?