SSO and changing email addresses upstream

If you send the parameter 'require_activation' => 'true' in the SSO payload after a user changed their email address, Discourse will send the New User activation email to the user. They will need to visit the link in the email before they can log back into their account. The UI for this is a little confusing - it makes it seem that Discourse is creating a new account for the user. Your best approach is to ensure that emails are validated on your authentication server.

The big issue is for new users. Supplying an invalid email could cause them to be logged into an existing account. It’s really important to be validating emails on the authenticating site.