# Wordpress SSO stuck in redirect loop

**URL:** <https://meta.discourse.org/t/wordpress-sso-stuck-in-redirect-loop/67856>\
**Category:** WordPress\
**Created:** [11 Agosto 2017, 6:40am UTC](https://meta.discourse.org/t/wordpress-sso-stuck-in-redirect-loop/67856 "2017-08-11T06:40:19Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![MattCHM](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mattchm/32/119926_2.png) [@MattCHM](https://meta.discourse.org/u/MattCHM)\
**Post date:** [11 Agosto 2017, 6:40am UTC](https://meta.discourse.org/t/wordpress-sso-stuck-in-redirect-loop/67856/1 "2017-08-11T06:40:19Z")

</div>

We had PrimeTime [WP Discourse](https://github.com/discourse/wp-discourse) SSO plugin in place on our Wordpress install to handle the SSO to our Discourse forum and that was working apart from redirecting the user back to the Wordpress site on logout. To fix this I tried updating to WP-Discourse 1.43. The Wordpress site is the SSO Provider.

Since that whenever I try to access Discourse the page gets stuck in a redirect loop. At first it gets stuck at  
`https://www.mydomain.com/?sso=bm9uY2U9NDk3NzQ5MmY4M2Q2MmVjNjRjOTM...&sig=2ec83b391a3cecd44d9123563a237d7f881...`  
(… being the rest of the string)

Refreshing the page again will get to:  
`https://forum.mydomain.com/session/sso_login?sso=bm9uY2U9NDk3NzQ5MmY4M2Q2MmVjN...&sig=2ec83b391a3cecd44d9123563a237d7f88132d0d...`  
But we get the message Login Error. Account login timed out, please try logging in again.

I’ve tried deactivating WP-Discourse and reactivating PrimeTime [WP Discourse](https://github.com/discourse/wp-discourse) SSO without any success. We are using the MemberPress plugin on Wordpress which does have a custom login page, but this problem occurs even when that is deactivated. We haven’t changed any of the Discourse settings other than getting an API key. Now I can’t login there to make changes. Disabling SSO on Discourse as per instructions here:  
[Install and configure the WP Discourse Wordpress plugin for Discourse](https://meta.discourse.org/t/wp-discourse-plugin-installation-and-setup/50752)  
Seems to disable the SSO requirement but the login form presented on Discourse has no fields.

 ![47 PM](https://global.discourse-cdn.com/meta/original/3X/5/3/53042c86d61e460999bbe3be3a207bbddccfc795.jpg)

Hope someone can offer some advice.

---

_[View the full topic](https://meta.discourse.org/t/wordpress-sso-stuck-in-redirect-loop/67856)._
