psignoret / aad-sso-wordpress

Single Sign-on with Azure Active Directory (for WordPress)
Other
270 stars 78 forks source link

Too many redirect URL error #261

Open amarvora opened 1 year ago

amarvora commented 1 year ago

I am using this plugin since long and it works perfectly fine.. But Sometime I am getting error of "Too many redirection" and it get stucks for 30 to 45 minutes. And after that it automatically start working. I don't know why this error occur? And this error is not producing frequently it's happening once in a month. In my Azure Panel there are 2 redirection url which is like below.

1) https://www.abc.com/ 2) https://www.abc.com/wp-login.php

I think due to legacy value of session or token it's redirecting to wp-login.php page.. and Microsoft again redirecting to home page URL,. But I am not sure. Can anyone help me to resolve this issue?

Thank you

psignoret commented 1 year ago

Can you share details for your WordPress installation (version, other plugins, hosting platform), and how you've configured the plugin (e.g. which options have you enabled)?

amarvora commented 1 year ago

Sure I am attaching the screenshot of Microsoft Azure Redirect URL, also Wordpress Azure Settings and PHP Code were I am doing customization for preventing error of "too many redirection" but i m not getting what to do. (I am just doing session destroy for "aadsso_antiforgery-id" and "redirect_to" may be this are the legacy session value and that's why it's redirecting. (But this is my assumption)

I am using Wordpress 4.9.5 and php 5.5, Plugin version is 0.7.0 hosting server is linux centos 6 (it's dedicated server)

code wordpress-screenshot azure-screenshot