Skip to content
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

ERR_TOO_MANY_REDIRECTS #14

Open
sgrimmettuk opened this issue Mar 30, 2023 · 4 comments
Open

ERR_TOO_MANY_REDIRECTS #14

sgrimmettuk opened this issue Mar 30, 2023 · 4 comments

Comments

@sgrimmettuk
Copy link

Hi,
I have added the files in this project to a new webhosting and have modified the config.inc file as per directions but after seeing the 365 sign in message all I get are errors of ERR_TOO_MANY_REDIRECTS

I have tried using both my single tenant ID and the common setting for Azure, I have checked and my user is set against the enterprise application for access.

I have checked all the requirements you listed, I am running PHP 8.0.28 with CURL 7.29.0.

Can you suggest what I should check?

Many thanks! :)

@SBCV-apegram
Copy link

I am also having this problem, it seemed to crop up out of nowhere...

@SBCV-apegram
Copy link

@sgrimmettuk I was able to fix it (for me) by clearing the site cache in the browser, then deleting the session entries in the database.

@JorritDeKlerk
Copy link

Hint: the SameSite-element of the sessioncookie is probably set to Strict. When the redirect to Azure AD happens, the PHP-session is automatically destroyed. So, make the sessioncookie SameSite Lax or None (via the .ini, or by adding something like:

ini_set('session.cookie_samesite', 'Lax'); ini_set('session.cookie_secure', true); session_regenerate_id(true);

just before the redirect to Azure AD happens in modAuth.

@SadFool
Copy link

SadFool commented Jul 4, 2024

I had the same issue, until I realized that my db user was unable to insert entries into the table. Having granted the user full access to this particular db, I overlooked the fact that it also requires write access to the table itself. Otherwise, no session will be stored and the redirect to Entra AD will happen constantly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants