steveloughran commented on a change in pull request #1842: HADOOP-16730 : ABFS:
Add Authorizer Interface
URL: https://github.com/apache/hadoop/pull/1842#discussion_r378952218
##########
File path:
hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/AzureBlobFileSystemStore.java
##########
@@ -1131,20 +1142,38 @@ private void initializeClient(URI uri, String
fileSystemName, String accountName
SharedKeyCredentials creds = null;
AccessTokenProvider tokenProvider = null;
- if (abfsConfiguration.getAuthType(accountName) == AuthType.SharedKey) {
- LOG.trace("Fetching SharedKey credentials");
- int dotIndex = accountName.indexOf(AbfsHttpConstants.DOT);
- if (dotIndex <= 0) {
- throw new InvalidUriException(
- uri.toString() + " - account name is not fully qualified.");
- }
- creds = new SharedKeyCredentials(accountName.substring(0, dotIndex),
+ AuthType authType = abfsConfiguration.getAuthType(accountName);
+ AbfsAuthorizer authorizer = abfsConfiguration.getAbfsAuthorizer();
+
+ // Create cred instance based on account level Auth config if
+ // - authorizer is not configured
+ // - or authroizer configured will not provide SAS
Review comment:
typo
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]