dnscontrol icon indicating copy to clipboard operation
dnscontrol copied to clipboard

Providers should lazy-authenticate

Open tlimoncelli opened this issue 4 years ago • 1 comments

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.

tlimoncelli avatar Jul 07 '21 20:07 tlimoncelli

I can't find any examples of providers that don't lazy authenticate. Can anyone else?

tlimoncelli avatar May 09 '22 02:05 tlimoncelli