diff --git a/src/main/java/com/okta/tools/authentication/BrowserAuthentication.java b/src/main/java/com/okta/tools/authentication/BrowserAuthentication.java index 1fbe412..fc88b45 100644 --- a/src/main/java/com/okta/tools/authentication/BrowserAuthentication.java +++ b/src/main/java/com/okta/tools/authentication/BrowserAuthentication.java @@ -80,8 +80,8 @@ public void start(final Stage stage) throws IOException { initializeCookies(uri); SubresourceIntegrityStrippingHack.overrideHttpsProtocolHandler(environment); - webEngine.getLoadWorker().stateProperty() - .addListener((ov, oldState, newState) -> { + webEngine.locationProperty() + .addListener((ov, oldLocation, newLocation) -> { if (webEngine.getDocument() != null) { checkForAwsSamlSignon(stage, webEngine); stage.setTitle(webEngine.getLocation());