Thamer is locked out of their Discourse admin account after disabling Memberful SSO and deactivating the API key while logged in. They seek to regenerate an API key via console to re-enable Memberful integration and safely disable it. osioke provides Ruby console code to generate a new API key, but Thamer is unfamiliar with executing it. Thamer confirms access to the DigitalOcean console and references a Meta Discourse guide but needs step-by-step guidance. osioke clarifies that console commands are meant to be run in the Rails console, but Thamer remains unsure how to proceed. simon offers a simpler solution: bypass SSO by visiting https://forum.example.com/u/admin-login, entering the admin email, and using the one-time login link sent via email — a built-in Discourse feature for admins locked out by SSO misconfigurations. This workaround avoids console manipulation entirely and restores immediate access.
It sounds as though you have enabled SSO via Memberful and are now locked out of your account. If this is the case, as an admin you can bypass SSO login. To do that, go to https://forum.example.com/u/admin-login. Enter your email address into the form that appears. A one time login link will be emailed to you.