This PR adds prompting for URL if missing. Also refactors ZabbixAPI client setup by moving it into the Authenticator class, which makes more sense when calling auth.login from different places, all of which might not have a client instance ready. Furthermore, it allows us to control the instantiation of the client from within the login flow, granting us more control over the configuration of the client there.
This PR adds prompting for URL if missing. Also refactors
ZabbixAPI
client setup by moving it into theAuthenticator
class, which makes more sense when callingauth.login
from different places, all of which might not have a client instance ready. Furthermore, it allows us to control the instantiation of the client from within the login flow, granting us more control over the configuration of the client there.