The way we do login today is practical but obligates the user to export env vars (credentials could be loaded from other place) and also does not make dependencies explicit (instead of using code to make deps explicit we use documentation, that can lie, specially about runtime dependencies like env vars). I propose we change azure_login to:
fn azure_login(service_principal, tenantid, clientid, secretid) {
}
And create another azure_login_from_env, or azure_login_env (or another name), that loads env vars according to the pattern established on the project and calls the azure_login function.
The way we do login today is practical but obligates the user to export env vars (credentials could be loaded from other place) and also does not make dependencies explicit (instead of using code to make deps explicit we use documentation, that can lie, specially about runtime dependencies like env vars). I propose we change azure_login to:
And create another azure_login_from_env, or azure_login_env (or another name), that loads env vars according to the pattern established on the project and calls the azure_login function.