dnscontrol
dnscontrol copied to clipboard
Providers should lazy-authenticate
Some providers don't authenticate until needed. Others authenticate on initialization (newPROVIDER()).
Neither is better. Users appreciate early authentication because it validates the credentials early, giving feedback right away if they have invalid creds. However by doing it that way, many providers authenticate once for each domain, which is slow and wasteful.
What would be better is if providers authenticate as late as possible, but we add some kind of "authcheck" subcommand that verifies that authentication is working for all providers in use.
I can't find any examples of providers that don't lazy authenticate. Can anyone else?