Hello all. We’re experimenting with wordpress + discourse + wp-discourse plugin with all the sso settings set.
We’re aiming to have all account creation happen only in wordpress and to have users login to wordpress and then be automatically logged into discourse via sso when they visit our discourse site.
This is working fine for a simple test case scenario.
But if I go and change my email address in wordpress, then I can’t login to discourse via sso anymore. Is there some setting somewhere that I may have missed which makes the system be able to handle email address changes?
I’m working a live staging environment and so far I’ve done my tests on Safari Mac.
I worry that I may not have filled out all the sso-related settings quite the way I need to. Especially since I’m also also having the problem I mentioned here where I need to refresh discourse to show as logged in.
Would you be willing to share exactly how you set things up? Like perhaps share a screen grab of your Admin/Settings/Login screen in Discourse and the settings screen for the wp-discourse plugin?
I made my best guess for each setting but I think I might have guessed wrong in a place or two.
What WordPress theme are you using?
Are you using a plugin to add a login form to the site?
On your WordPress site, if you log out and then go to yourdomain.com/login what page on your site are you redirected to? On a standard WordPress install you will be directed to yourdomain.com/wp-login.php.
If you do not have the sso overrides email option checked it will not update the email on discourse causing it to not log in. Also you need to make sure that the setting in Discourse “email editable - Allow users to change their e-mail address after registration” is checked. I think it is by default but probably good to check and make sure.
That’s what I thought, but at least on my local setup, without selecting those options I can still log into Discourse after changing my WordPress email address. Selecting the ‘sso_overrides_email’ option just makes it so that the user’s Discourse email address is updated if they change it on WordPress.