The issue here is that API action=login won't reliably continue working in an AuthManager world. Options include:
- Using OAuth or BotPasswords instead for your remote access, which will continue working.
- Creating your own custom OAuth-like SessionProvider for your remote access.
- Figuring out some way to do the remote access that isn't requiring authenticated API requests to a remote wiki.
If you pick BotPasswords as the solution, it won't necessarily even need any code changes. Just some manual work to set up BotPasswords on the account used for the remote access then a configuration change to update the username and password.