Skip to content

Commit b5ad11d

Browse files
committed
Exclue headers in refresh for client credential flow
1 parent 0b0eb53 commit b5ad11d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

core/src/main/java/org/apache/iceberg/rest/auth/OAuth2Util.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@
1818
*/
1919
package org.apache.iceberg.rest.auth;
2020

21-
import static org.apache.iceberg.TableProperties.COMMIT_MAX_RETRY_WAIT_MS_DEFAULT;
22-
import static org.apache.iceberg.TableProperties.COMMIT_MIN_RETRY_WAIT_MS_DEFAULT;
23-
import static org.apache.iceberg.TableProperties.COMMIT_TOTAL_RETRY_TIME_MS_DEFAULT;
24-
2521
import com.fasterxml.jackson.core.JsonGenerator;
2622
import com.fasterxml.jackson.databind.JsonNode;
2723
import java.io.IOException;
@@ -56,6 +52,10 @@
5652
import org.slf4j.Logger;
5753
import org.slf4j.LoggerFactory;
5854

55+
import static org.apache.iceberg.TableProperties.COMMIT_MAX_RETRY_WAIT_MS_DEFAULT;
56+
import static org.apache.iceberg.TableProperties.COMMIT_MIN_RETRY_WAIT_MS_DEFAULT;
57+
import static org.apache.iceberg.TableProperties.COMMIT_TOTAL_RETRY_TIME_MS_DEFAULT;
58+
5959
public class OAuth2Util {
6060
private OAuth2Util() {}
6161

@@ -186,7 +186,7 @@ private static OAuthTokenResponse refreshToken(
186186
}
187187

188188
return fetchToken(
189-
client, headers, config.credential(), config.scope(), config.oauth2ServerUri());
189+
client, Map.of(), config.credential(), config.scope(), config.oauth2ServerUri());
190190
}
191191
}
192192

0 commit comments

Comments
 (0)