I am trying to find a way to access Secret Manager Version (Service accountkey file) into an App hosted On-Premise. This link has an example on how to access it through C# via secret manager client API but the problem here is it requires having an ADC which is not possible on those servers. I couldn't find anywhere but does SecretManager Client API supports API Key ? if not what all options I have ? Also there is Workload Identity Federation service but there is no .net Client API's available
//Uses ADC
SecretManagerServiceClient client = SecretManagerServiceClient.Create();
Also there is a SecretManagerServiceClientBuilder
but there is no documentation on how it can be used