adutra commented on code in PR #10753: URL: https://github.com/apache/iceberg/pull/10753#discussion_r1808964617
########## core/src/main/java/org/apache/iceberg/rest/RESTSessionCatalog.java: ########## @@ -1009,26 +910,13 @@ private FileIO tableFileIO(SessionContext context, Map<String, String> config) { return newFileIO(context, fullConf); } - private AuthSession tableSession(Map<String, String> tableConf, AuthSession parent) { - Map<String, String> credentials = Maps.newHashMapWithExpectedSize(tableConf.size()); - for (String prop : tableConf.keySet()) { - if (TABLE_SESSION_ALLOW_LIST.contains(prop)) { - credentials.put(prop, tableConf.get(prop)); - } - } - - Pair<String, Supplier<AuthSession>> newSession = newSession(credentials, tableConf, parent); - if (null == newSession) { - return parent; - } - - AuthSession session = tableSessions.get(newSession.first(), id -> newSession.second().get()); - - return session != null ? session : parent; + private AuthSession tableSession( + TableIdentifier id, Map<String, String> tableConf, AuthSession parent) { + return authManager.tableSession(id, tableConf, parent); } private static ConfigResponse fetchConfig( - RESTClient client, Map<String, String> headers, Map<String, String> properties) { + RESTClient client, AuthSession initialAuth, Map<String, String> properties) { Review Comment: Fixed. `fetchConfig` is now using `configHeaders`, see 114d649. -- 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-unsubscr...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org