Wordpress - Redirect loop on successful sign-in

Hello,

After sign-in, and from the Auth0 logs we can see that the sign-in itself is successful, a redirect loop begins, cycling through the callback (index.php?auth0=) > wp-login.php > authorize (at the Auth0 tenant).

The Auth0 logs show no errors, nor do the Wordpress logs. Someone else had this same issue in 2019 (link below), but as often happens, they never followed up or posted a solution. We have generated the HAR file if there is someone from Auth0 who could have a look for me.

Many thanks,

Martin

Hi @martincl,

Welcome to the Community!

Would you mind messaging me the HAR file so I can investigate this? Thanks!

Thank-you @stephanie.chamblee - I’ve messaged you the HAR file.

Thank you @martincl, I am taking a look at this now.

Are you using any plugins that might affect the login flow by chance such as “Restricted Site Access”?

I’m wondering if this could be related to this topic: Loop on WordPress Login with Auth0 Plugin - #6 by josh.cunningham

Thank-you for your help - you pointed us in the right direction. One of our own plugins forced sign-in across the whole site and this was causing the loop.

1 Like

I’m glad you were able to find the cause of the loop!

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.