Ticket #27233 - Try again.  Cache the actual login instances globally to make sure that all info is shared across instances of the framework module.  This is needed to make sure that the framework loaded by the tk-desktop engine has access to the configuration/cached authentication info from the Desktop app.