In trying to get the redirect endpoint to register successfully, I moved everything in the plugin to after_initialize. This doesn't work, since plugin#activate! expects all resources like scripts, styles and auth_providers to be registered synchronously. This fixes that up so that only the endpoint is deferred.
In trying to get the redirect endpoint to register successfully, I moved everything in the plugin to
after_initialize
. This doesn't work, sinceplugin#activate!
expects all resources like scripts, styles andauth_providers
to be registered synchronously. This fixes that up so that only the endpoint is deferred.