Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ public class IcebergRestProperties extends AbstractIcebergProperties {
@ConnectorProperty(names = {"iceberg.rest.oauth2.token-refresh-enabled"},
required = false,
description = "Enable oauth2 token refresh for the iceberg rest catalog service.")
private String icebergRestOauth2TokenRefreshEnabled = "false";
private String icebergRestOauth2TokenRefreshEnabled = String.valueOf(
OAuth2Properties.TOKEN_REFRESH_ENABLED_DEFAULT);

@ConnectorProperty(names = {"iceberg.rest.vended-credentials-enabled"},
required = false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ public void testOAuth2CredentialFlow() {
Assertions.assertEquals("client_credentials", catalogProps.get(OAuth2Properties.CREDENTIAL));
Assertions.assertEquals("http://auth.example.com/token", catalogProps.get(OAuth2Properties.OAUTH2_SERVER_URI));
Assertions.assertEquals("read write", catalogProps.get(OAuth2Properties.SCOPE));
Assertions.assertEquals("false", catalogProps.get(OAuth2Properties.TOKEN_REFRESH_ENABLED));
Assertions.assertEquals(String.valueOf(OAuth2Properties.TOKEN_REFRESH_ENABLED_DEFAULT),
catalogProps.get(OAuth2Properties.TOKEN_REFRESH_ENABLED));
}

@Test
Expand Down
Loading