# Does a social login WP plugin address Discourse expectation for email verification? (with WP as SSO provider)

**URL:** https://meta.discourse.org/t/does-a-social-login-wp-plugin-address-discourse-expectation-for-email-verification-with-wp-as-sso-provider/98071
**Category:** WordPress
**Created:** [26 september 2018 om 03:52 UTC](https://meta.discourse.org/t/does-a-social-login-wp-plugin-address-discourse-expectation-for-email-verification-with-wp-as-sso-provider/98071 "2018-09-26T03:52:33Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![jord8on](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jord8on/32/166809_2.png) [@jord8on](https://meta.discourse.org/u/jord8on)
#### Post date: [26 september 2018 om 03:52 UTC](https://meta.discourse.org/t/does-a-social-login-wp-plugin-address-discourse-expectation-for-email-verification-with-wp-as-sso-provider/98071/1 "2018-09-26T03:52:33Z")

</div>

Continuing the discussion from [WP Discourse plugin installation and setup](https://meta.discourse.org/t/wp-discourse-plugin-installation-and-setup/50752):

> [@Install and configure the WP Discourse Wordpress plugin for Discourse](https://meta.discourse.org/t/install-and-configure-the-wp-discourse-wordpress-plugin-for-discourse/50752/1):
>
> #### Email Verification When WordPress is the SSO Provider
> 
> Discourse expects all user’s email addresses to be verified; WordPress doesn’t force users to verify their email address. In a default WordPress setup it is fairly easy to verify a user’s email address during the registration process, but if a site is using a plugin that creates a front end registration form - for example, the registration form that can be added with WooCommerce - the [WP Discourse](https://github.com/discourse/wp-discourse) plugin isn’t able to verify the user’s email. In this case, before a WordPress user will be able to login to the forum, they will need to respond to an email verification notice that is sent out by Discourse. The plugin has a couple of filters that can be used to override this behaviour. Take a look at the code, starting [here](https://github.com/discourse/wp-discourse/blob/master/lib/discourse-sso.php#L203), for details.

I’ve been looking at using a social login plugin for my WP site and was wondering if Discourse will recognized that user based on their social login?

Is there a recommended social login plugin for WP that would satisfy the requirement of Discourse to pass the user info over to Discourse, when using SSO and WP as the provider?

Regarding the statement below, which plugin is being referred to?

> The plugin has a couple of filters that can be used to override this behaviour. Take a look at the code, starting [here](https://github.com/discourse/wp-discourse/blob/master/lib/discourse-sso.php#L203), for details.

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [27 september 2018 om 01:15 UTC](https://meta.discourse.org/t/does-a-social-login-wp-plugin-address-discourse-expectation-for-email-verification-with-wp-as-sso-provider/98071/2 "2018-09-27T01:15:00Z")

</div>

> [@jord8on](#):
>
> I’ve been looking at using a social login plugin for my WP site and was wondering if Discourse will recognized that user based on their social login?

The social login plugin will create a regular WordPress user, so there shouldn’t be a problem having Discourse recognize the user. Where you may run into problems is with having the wp-discourse plugin recognize that the user’s email address has been verified by the social login provider. Will you have other login methods available on your WordPress site, or will it be limited to logging in with a social login plugin?

> [@jord8on](#):
>
> Regarding the statement below, which plugin is being referred to?

This is referring to the [WP Discourse](https://github.com/discourse/wp-discourse) plugin. For details about disabling the Discourse activation email with the [WP Discourse](https://github.com/discourse/wp-discourse) plugin, see this topic: [How to Deactivate the Discourse Activation Email](https://meta.discourse.org/t/how-to-deactivate-the-discourse-activation-email/85379)

---

<div class="post-metadata">

### Author: ![jord8on](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jord8on/32/166809_2.png) [@jord8on](https://meta.discourse.org/u/jord8on)
#### Post date: [27 september 2018 om 19:44 UTC](https://meta.discourse.org/t/does-a-social-login-wp-plugin-address-discourse-expectation-for-email-verification-with-wp-as-sso-provider/98071/3 "2018-09-27T19:44:55Z")

</div>

Thanks Simon!

> Will you have other login methods available on your WordPress site, or will it be limited to logging in with a social login plugin?

I was planning to let users register/login via email address or social logins.

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [1 oktober 2018 om 14:43 UTC](https://meta.discourse.org/t/does-a-social-login-wp-plugin-address-discourse-expectation-for-email-verification-with-wp-as-sso-provider/98071/4 "2018-10-01T14:43:14Z")

</div>

> [@jord8on](#):
>
> I was planning to let users register/login via email address or social logins.

If you are using the default WordPress registration for users who register via email, users who register in that way will have their email address marked as verified by [WP Discourse](https://github.com/discourse/wp-discourse). Ideally it would be possible to determine which users had registered via social login and which users had registered via standard WordPress registration.

Have you decided on a social login plugin? If so, let me know what it is. If it’s a free plugin I’ll take a look at it and see if I have any ideas for a good way to approach this.
