You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let auth_config_runtime_vars = [&self.client_id,&self.tenant_id,&self.client_secret];
109
+
let any_some = auth_config_runtime_vars.iter().any(|&var| var.is_some());
110
+
let any_none = auth_config_runtime_vars.iter().any(|&var| var.is_none());
111
+
112
+
if any_none && any_some {
113
+
// some of the service principal auth options were specified, but not enough to authenticate.
114
+
returnErr(anyhow!("The current runtime config specifies some but not all of the Azure KeyVault 'client_id', 'client_secret', and 'tenant_id' values. Provide the missing values to authenticate to Azure KeyVault with the given service principal, or remove all these values to authenticate using ambient authentication (e.g. env vars, Azure CLI, Managed Identity, Workload Identity)."));
115
+
}
116
+
117
+
let auth_options = if any_some {
118
+
// all the service principal auth options were specified in the runtime config
0 commit comments