Library separated from https://github.com/Alex-Programs/openxgauthenticator for logging into Sophos XG firewalls.
Used by both the GUI and CLI versions. Feel free to use yourself.
It's blocking. If you want to use it in a GUI, you'll need to use a thread.