I have enabled “Create or Sync Discourse Users on Login” because I want a Discourse account to be created when people log into my WordPress account, via SSO.
The SSO connection is correct and working, people are using the forum, but newly registered users or users who registered before the forum is added have to go through these steps:
Visit the forum site.
Click login
Their account is created, but they then have to verify their email address.
So not only is the “Create or Sync” function not working, but the ability to skip verifying email addresses (which I’ve also done on WordPress) doesn’t seem to work either.
I’ve actually fixed the double verification problem now, using a filter. So that’s all good (I’m just not sure why it started happening, a few days after it was all set up… strange).
But as for the other issue, what I’m expecting is:
User signs up to the site on WordPress
A forum account is created for them in the background
and:
Existing user who signed up weeks ago logs into the site today
A forum account is created in the background.
At the moment none of that is happening. The user has to manually visit the forum site and click Login. This is exactly the same as what was happening before I ticked the “Create or Sync Discourse Users on Login” checkbox, so it seems the checkbox has changed nothing.
I see, thanks for explaining. Ok, let’s focus on the account creation issue. Just a further clarification. Are you saying that you’re expecting this:
User signs up to the site on WordPress
User is logged into Wordpress (automatically after signup)
A forum account is created for them in the background
And
User goes to the forum and they’re logged in
Is that right?
If so, there is a difference between the creation of a user account and a login session. DiscourseConnect does not automatically create a login session for the user on Discourse when the user logs into Wordpress. Unfortunately, no SSO solution works this way for independent software frameworks like Wordpress and Discourse. It only works this way for platforms like Google or Microsoft.
Hey Shaun, I haven’t been able to recreate your issue yet. Here’s a video of me successfully using the feature on my demonstration instances. Have a look and let me know if you’re doing or expecting anything different: