Skip to content

Commit 050afa8

Browse files
committed
testing, disable the refresh key call, see if we can reproduce the same issue
1 parent b64e24b commit 050afa8

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/main/java/com/uid2/operator/model/KeyManager.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,10 @@ public KeysetKey getRefreshKey() {
126126
}
127127

128128
public KeysetKey getRefreshKey(Instant asOf) {
129-
KeysetKey key = this.keysetKeyStore.getSnapshot().getActiveKey(Const.Data.RefreshKeysetId, asOf);
129+
// TEMPORARY: Simulate keyset key unavailability to reproduce Univision issue
130+
KeysetKey key = null; // Force key to be null to trigger exception
131+
132+
// KeysetKey key = this.keysetKeyStore.getSnapshot().getActiveKey(Const.Data.RefreshKeysetId, asOf);
130133
if (key == null) {
131134
if (keyAvailabilityHandler != null) keyAvailabilityHandler.accept(false);
132135
throw new NoActiveKeyException(String.format("Cannot get a refresh key with keyset ID %d.", Const.Data.RefreshKeysetId));

0 commit comments

Comments
 (0)