The discussion revolves around expiring all current sign-ins during a Discourse forum migration to a new host. rsmith2019 outlines a migration plan but seeks a way to log everyone out immediately without console access. pfaffman suggests using the “Read only” mode on the backup page to prevent data loss and mentions the UserAuthToken.all.destroy_all command in the Rails console for mass logout. codinghorror references a related thread for further details. rsmith2019 confirms the read-only option will prevent data loss but asks whether users will be logged out after restoring the backup to the new server.
Currently moving an SSO-enabled Discourse forum to a new host.
My plan is below, but I don’t know how to to expire all current sign-ins (step 3).
The only setting I can see in the admin console that might be useful is “maximum session age”, but I’d prefer a “log everyone out immediately” button. Sadly I do not have access to the command line tools.
Turn off SSO, so no new users can sign-in
Sign in via /users/admin-login
Expire all current sign-ins to avoid any loss of data
To protect against data loss you should put the forum in read-only mode from the backup page, but I think that this will log everyone out in the rails console: