You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Sven (Jira)" <ji...@apache.org> on 2024/09/26 14:20:00 UTC
[jira] [Created] (CAMEL-21280) azure-files: Only CredentialType.SHARED_ACCOUNT_KEY is handled
Sven created CAMEL-21280:
----------------------------
Summary: azure-files: Only CredentialType.SHARED_ACCOUNT_KEY is handled
Key: CAMEL-21280
URL: https://issues.apache.org/jira/browse/CAMEL-21280
Project: Camel
Issue Type: Bug
Components: camel-azure
Affects Versions: 4.7.0
Reporter: Sven
In FilesOperations the client builder only handles the SHARED_ACCOUNT_KEY CredentialType, the others are misplaced under that if:
{code:java}
if (configuration.getCredentialType().equals(CredentialType.SHARED_ACCOUNT_KEY)) {
if (sharedKey != null) {
var keyB64 = FilesURIStrings.reconstructBase64EncodedValue(sharedKey);
builder.credential(new StorageSharedKeyCredential(configuration.getAccount(), keyB64));
} else if (configuration.getCredentialType().equals(CredentialType.AZURE_SAS)) {
builder = builder.sasToken(token.toURIQuery());
} else if (configuration.getCredentialType().equals(CredentialType.AZURE_IDENTITY)) {
builder = builder.credential(new DefaultAzureCredentialBuilder().build());
}
} {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)