Skip to content

Commit fb7bb94

Browse files
authored
Set default AllowLegacyAPIProp value to false (#1609)
* Set default AllowLegacyAPIProp value to false * Fix unit test
1 parent fe7af52 commit fb7bb94

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/main/java/com/uid2/operator/vertx/UIDOperatorVerticle.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ public UIDOperatorVerticle(IConfigService configService,
184184
this.saltRetrievalResponseHandler = saltRetrievalResponseHandler;
185185
this.optOutStatusApiEnabled = config.getBoolean(Const.Config.OptOutStatusApiEnabled, true);
186186
this.optOutStatusMaxRequestSize = config.getInteger(Const.Config.OptOutStatusMaxRequestSize, 5000);
187-
this.allowLegacyAPI = config.getBoolean(Const.Config.AllowLegacyAPIProp, true);
187+
this.allowLegacyAPI = config.getBoolean(Const.Config.AllowLegacyAPIProp, false);
188188
this.identityV3Enabled = config.getBoolean(IdentityV3Prop, false);
189189
this.disableOptoutToken = config.getBoolean(DisableOptoutTokenProp, false);
190190
}

src/test/java/com/uid2/operator/UIDOperatorVerticleTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,8 @@ public void deployVerticle(Vertx vertx, VertxTestContext testContext, TestInfo t
137137
if(testInfo.getDisplayName().equals("cstgNoPhoneSupport(Vertx, VertxTestContext)")) {
138138
config.put("enable_phone_support", false);
139139
}
140+
// TODO: Remove this when we remove allow_legacy_api FF
141+
config.put("allow_legacy_api", true);
140142
when(configService.getConfig()).thenReturn(config);
141143

142144
this.uidOperatorVerticle = new ExtendedUIDOperatorVerticle(configService, config, config.getBoolean("client_side_token_generate"), siteProvider, clientKeyProvider, clientSideKeypairProvider, new KeyManager(keysetKeyStore, keysetProvider), saltProvider, optOutStore, clock, statsCollectorQueue, secureLinkValidatorService, shutdownHandler::handleSaltRetrievalResponse);

0 commit comments

Comments
 (0)