You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "danielcweeks (via GitHub)" <gi...@apache.org> on 2023/02/17 05:02:47 UTC

[GitHub] [iceberg] danielcweeks commented on a diff in pull request #6835: AWS: OSS S3 Signer Updates

danielcweeks commented on code in PR #6835:
URL: https://github.com/apache/iceberg/pull/6835#discussion_r1109306790


##########
aws/src/main/java/org/apache/iceberg/aws/s3/signer/S3V4RestSignerClient.java:
##########
@@ -105,6 +105,12 @@ public String token() {
     return properties().get(OAuth2Properties.TOKEN);
   }
 
+  /**
+   * A token supplier that takes precedence over {@link S3V4RestSignerClient#token()} if it's set.
+   */
+  @Nullable
+  public abstract Supplier<String> tokenSupplier();

Review Comment:
   I feel like it's unnecessary to have both `token()` and `tokenSupplier()`.  I think we should just make `token()` be a supplier and then the default can always be `properties().get(OAuth2Properties.TOKEN`.  Having duplicates with precedence considerations just makes it more complicated.



-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org