How to Disable Required SSO Email Activation

Followed the instructions outlined here to enable single-sign-on (SSO) authentication for Discourse existing account credentials on our site.

As part of SSO authentication the user must activate their account by clicking a link sent in an email to their email address.

Here is what appears on the forum after you have authenticated but not activated your account.

Here is the activation email that is sent to the user.

Here is my question—Is there a way to disable this required email activation after a successful SSO authentication?

I have read here that by setting the require_activation SSO parameter to false I can disable the user having to activate their account via email.

  • Will setting this SSO parameter to false disable email activation?
  • I assume this modification require changes to the SSO authentication code. Is this a correct assumption?
  • Is there any way to disable email activation via Admin settings, without requiring code changes? Note: We do not want to disable all emails being sent by Discourse, only the email related to account activation

Thanks in advance.

1 Like

Yes and yes :+1:

No, you’ll need to update your DiscourseConnect (formerly ‘Discourse SSO’) provider code.

Please make sure that your provider is indeed verifying user emails before making this change. Otherwise, you could be open to various security issues.

1 Like

David - Thanks for the quick answer. Yes, we are verifying user provided emails when our main site accounts are created.