Skip to content
Snippets Groups Projects

Issue #3443301 by joseph.olstad: Key vault config is too constrained - 128...

Files
8
@@ -104,12 +104,14 @@ class AzureKeyVaultKeyProvider extends KeyProviderBase implements KeyProviderSet
@@ -104,12 +104,14 @@ class AzureKeyVaultKeyProvider extends KeyProviderBase implements KeyProviderSet
// If this key type is for an encryption key.
// If this key type is for an encryption key.
if ($form_state->getFormObject()->getEntity()->getKeyType()->getPluginDefinition()['group'] == 'encryption') {
if ($form_state->getFormObject()->getEntity()->getKeyType()->getPluginDefinition()['group'] == 'encryption') {
 
$configuration = $this->getConfiguration();
 
$default_configuration = $this->defaultConfiguration();
// Add an option to indicate that the value is stored Base64-encoded.
// Add an option to indicate that the value is stored Base64-encoded.
$form['base64_encoded'] = [
$form['base64_encoded'] = [
'#type' => 'checkbox',
'#type' => 'checkbox',
'#title' => $this->t('Base64-encoded'),
'#title' => $this->t('Base64-encoded'),
'#description' => $this->t('Checking this will store the key with Base64 encoding.'),
'#description' => $this->t('Checking this will store the key with Base64 encoding.'),
'#default_value' => isset($this->getConfiguration()['base64_encoded']) ? $this->getConfiguration()['base64_encoded'] : $this->defaultConfiguration()['base64_encoded'],
'#default_value' => $configuration['base64_encoded'] ?? $default_configuration['base64_encoded'] ?? 0,
];
];
}
}
Loading