Title: Plugin going into loop after authenticating
Last modified: August 31, 2016

---

# Plugin going into loop after authenticating

 *  Resolved [jnorris](https://wordpress.org/support/users/jnorris/)
 * (@jnorris)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/plugin-going-into-loop-after-authenticating/)
 * I’ve followed several guides I found online about setting up this plugin with
   ADFS, including one by the plugin’s author. I’m using ADFS 3.0 on Server 2012
   R2 as my ldp. I’ve gotten to the point that I believe the user is being authenticated
   but it’s going into a loop when redirecting back to the WordPress site. This 
   is an SP initiated login. When the user is redirected back to the WordPress site,
   they get stuck in a loop going back and forth between wp-login.php and wp-admin.
   php. I’ve posted an album with images of my settings and a Chrome network log
   showing the loop. I’ve tried everything I can think of to resolve this but nothing
   seems to help and the web server logs do not show any errors. Any suggestions
   would be greatly appreciated!
 * [Gallery](http://imgur.com/a/FNmQ7)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [jnorris](https://wordpress.org/support/users/jnorris/)
 * (@jnorris)
 * [10 years ago](https://wordpress.org/support/topic/plugin-going-into-loop-after-authenticating/#post-7320535)
 * After a long time troubleshooting this issue, I found that the issue was I had
   a test user set up with the same email address as the ADFS user I was trying 
   to authenticate. Currently, this plugin doesn’t do any error checking to see 
   if there was an issue when the wp_insert_user function is called so it doesn’t
   tell you there is an issue.
 *  [taupehat](https://wordpress.org/support/users/taupehat/)
 * (@taupehat)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/plugin-going-into-loop-after-authenticating/#post-8377766)
 * Thank you so much for finding this.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Plugin going into loop after authenticating’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/saml-20-single-sign-on.svg)
 * [SAML 2.0 Single Sign-On](https://wordpress.org/plugins/saml-20-single-sign-on/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/saml-20-single-sign-on/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/saml-20-single-sign-on/)
 * [Active Topics](https://wordpress.org/support/plugin/saml-20-single-sign-on/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/saml-20-single-sign-on/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/saml-20-single-sign-on/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [taupehat](https://wordpress.org/support/users/taupehat/)
 * Last activity: [9 years, 7 months ago](https://wordpress.org/support/topic/plugin-going-into-loop-after-authenticating/#post-8377766)
 * Status: resolved