# WP Discourse SSO login problem

**URL:** https://meta.discourse.org/t/wp-discourse-sso-login-problem/93521
**Category:** WordPress
**Created:** [July 31, 2018, 12:08am UTC](https://meta.discourse.org/t/wp-discourse-sso-login-problem/93521 "2018-07-31T00:08:30Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![bekircem](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bekircem/32/44582_2.png) [@bekircem](https://meta.discourse.org/u/bekircem)
#### Post date: [July 31, 2018, 12:08am UTC](https://meta.discourse.org/t/wp-discourse-sso-login-problem/93521/1 "2018-07-31T00:08:30Z")

</div>

Hi,

Recently, i used [WP Discourse](https://github.com/discourse/wp-discourse) plugin for setup Wordpress as SSO provider. I did not have any problems. On my new project with same setup, i have problem with SSO. I setup SSO as i did before but when i click Discourse login button, it redirects Wordpress login page, when i login it redirects Wordpress user profile page and when i visit Discourse it seems to have not logged in.

What can be the problem?

Thanks.

---

<div class="post-metadata">

### Author: ![bekircem](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bekircem/32/44582_2.png) [@bekircem](https://meta.discourse.org/u/bekircem)
#### Post date: [July 31, 2018, 12:27am UTC](https://meta.discourse.org/t/wp-discourse-sso-login-problem/93521/2 "2018-07-31T00:27:48Z")

</div>

I found the problem. There was a function in function.php file on the Wordpress site for redirect logged users to profile page. I removed that function and it works now.

Edit: But i have blank page problem now 😕
