In the discussion titled ‘Future Social Authentication Improvements,’ david outlines plans to enhance Discourse’s social authentication system by introducing a unified user_associated_accounts table based on the Omniauth schema, consolidating scattered provider data (e.g., Facebook, Twitter) into a single structure for easier management and extensibility. Key features include tracking ‘last used’ dates, logging connection/revoke events, and providing admin statistics. fantasticfears is cited for highlighting structural limitations in the current system. sam supports the proposal and suggests adding an extra column for flexible provider-specific data. david confirms the framework is now implemented, with core providers (Facebook, Twitter, GitHub, Google, Instagram) migrated, and documentation available at Adding a New Managed Authentication Method to Discourse. While the old system remains usable, plugin developers are strongly encouraged to migrate to benefit from shared account logic. A checklist tracks migration progress for core and official plugins, with most completed; remaining items include Patreon, SAML, Atlassian Crowd, and Yahoo (struck through). Deprecated providers like Ubuntu, Azure-AD, Dwolla, and Office365 (now Microsoft Auth) are noted. The goal is to simplify maintenance, improve scalability, and reduce redundancy across authentication methods.
Discourse now has the ability to connect and disconnect different authentication providers to your account. This is good, but there is still more we can do. These are things I intended to do with my last round of improvements, but have not managed to complete before needing to move on to another project.
As @fantasticfears pointed out here, features like this are difficult to implement with the current data structure. We should try and consolidate this information into one table, and share as much logic between providers as possible.
An improved system would be a user_associated_accounts table. Columns are based on the omniauth ‘auth hash schema’ Auth Hash Schema · omniauth/omniauth Wiki · GitHub. Email and nickname have dedicated columns as well as the ‘info’ column, so that they can be easily accessed.
The tricky bit here will be migrating data to the new structure, and updating plugins accordingly. It’s not a small amount of work, but I think it would be worth it.
I very much support this change. In this very specific case I also support an extra column in the table for “extra auth provider data” so we have some flexibility.
This framework for this is now in place. Core Facebook and Twitter authenticators have been migrated, and other authenticators will follow over the coming weeks. Documentation can be found here: Adding a new 'managed' authentication method to Discourse
There is no plan to prevent use of the old system, but it is highly recommended that plugins do migrated, so that complex account association logic can be shared.
I’ll use this topic to track the migrations of core/official-plugin authenticators: