mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUACAMOLE-641: Retrieve secrets from Azure Key Vault.
This commit is contained in:
@@ -83,8 +83,9 @@ public class AzureKeyVaultSecretService extends CachedVaultSecretService {
|
|||||||
KeyVaultClient client = new KeyVaultClient(credentialProvider.get());
|
KeyVaultClient client = new KeyVaultClient(credentialProvider.get());
|
||||||
SecretBundle secret = client.getSecret(url, name);
|
SecretBundle secret = client.getSecret(url, name);
|
||||||
|
|
||||||
// FIXME: STUB
|
// Cache retrieved value
|
||||||
return new CachedSecret(null, ttl);
|
String value = (secret != null) ? secret.value() : null;
|
||||||
|
return new CachedSecret(value, ttl);
|
||||||
|
|
||||||
}
|
}
|
||||||
catch (AzureKeyVaultAuthenticationException e) {
|
catch (AzureKeyVaultAuthenticationException e) {
|
||||||
|
Reference in New Issue
Block a user