aad-sso-wordpress icon indicating copy to clipboard operation
aad-sso-wordpress copied to clipboard

Too many redirect URL error

Open amarvora opened this issue 2 years ago • 2 comments

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

amarvora avatar Feb 13 '23 12:02 amarvora

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)?

psignoret avatar Feb 13 '23 15:02 psignoret

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

amarvora avatar Feb 13 '23 16:02 amarvora