# Oauth2 plugin sso, how to switch off email verification

**URL:** <https://meta.discourse.org/t/oauth2-plugin-sso-how-to-switch-off-email-verification/87542>\
**Category:** SSO\
**Created:** [15 במאי,‏ 2018,‏ 4:32pm UTC](https://meta.discourse.org/t/oauth2-plugin-sso-how-to-switch-off-email-verification/87542 "2018-05-15T16:32:38Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![shahidmir](https://avatars.discourse-cdn.com/v4/letter/s/9dc877/32.png) [@shahidmir](https://meta.discourse.org/u/shahidmir)\
**Post date:** [15 במאי,‏ 2018,‏ 4:32pm UTC](https://meta.discourse.org/t/oauth2-plugin-sso-how-to-switch-off-email-verification/87542/1 "2018-05-15T16:32:38Z")

</div>

Hi guys,  
For about 4 weeks or longer I have been working on SSO between Auth0 and discourse, on and off. I have gone for different solutions and had to change my approach a few times. I am now at a point where I need further advice.

1- I started by using the SSO approach mentioned in this article:

[https://blog.leog.me/discourse-sso-with-auth0-e49486d0294a](https://blog.leog.me/discourse-sso-with-auth0-e49486d0294a)

Recently it has come to light that the redirect approach mentioned in this article (redirecting from auth0 rule to discourse via the SSO login url) results in an incomplete login on Auth0 end, hence a customer login is not registered, which impacts the SSO cookie etc on Auth0 side. So we have to move away from this approach.

2- I have now deployed the 0auth2 plugin and am using the approach specified below:

> [@Configure sign up and log in with Auth0 using the OAuth2 Basic Plugin](https://meta.discourse.org/t/how-to-use-auth0-with-the-oauth2-basic-plugin/64633):
>
> If you are using [Auth0](https://auth0.com/) as your identity provider this guide will show you how to setup authentication using the [Discourse OAuth2 Basic Plugin](https://meta.discourse.org/t/oauth2-basic-support/33879). Initial Steps Create an Auth0 account if you don’t already have one The [Discourse OAuth2 Basic Plugin](https://meta.discourse.org/t/oauth2-basic-support/33879) ships pre-installed with Discourse. If you are self-hosted, ensure the plugin is enabled. For [hosted plans](https://www.discourse.org/pricing), the plugin is available on Business tier and above. Configure Auth0 Applications → Create Application Give your client a name like “Discourse…

The issue I have now is the “requirement to verify email” before discourse creates the user record and logs the user in. Is there no way to turn this feature off via the dashboard config?  
What is the best approach to work around this if the feature cant be turned off? I dont want the user to have to verify the email in discourse.

I have found a few articles but the seem overly complicated.

Regards  
shahid

---

_[View the full topic](https://meta.discourse.org/t/oauth2-plugin-sso-how-to-switch-off-email-verification/87542)._
