diff --git a/forms/common-themes/src/main/resources/theme/base/login/login-totp.ftl b/forms/common-themes/src/main/resources/theme/base/login/login-totp.ftl index e472fff1ff..c5d28a1691 100755 --- a/forms/common-themes/src/main/resources/theme/base/login/login-totp.ftl +++ b/forms/common-themes/src/main/resources/theme/base/login/login-totp.ftl @@ -25,7 +25,6 @@
-
diff --git a/forms/common-themes/src/main/resources/theme/base/login/login.ftl b/forms/common-themes/src/main/resources/theme/base/login/login.ftl index e4ab6668db..925f99c207 100755 --- a/forms/common-themes/src/main/resources/theme/base/login/login.ftl +++ b/forms/common-themes/src/main/resources/theme/base/login/login.ftl @@ -50,7 +50,6 @@
-
diff --git a/testsuite/integration/src/test/java/org/keycloak/testsuite/adapter/AdapterTestStrategy.java b/testsuite/integration/src/test/java/org/keycloak/testsuite/adapter/AdapterTestStrategy.java index e26baeaca0..35774cdb95 100755 --- a/testsuite/integration/src/test/java/org/keycloak/testsuite/adapter/AdapterTestStrategy.java +++ b/testsuite/integration/src/test/java/org/keycloak/testsuite/adapter/AdapterTestStrategy.java @@ -219,9 +219,6 @@ public class AdapterTestStrategy extends ExternalResource { Assert.assertTrue(driver.getCurrentUrl().startsWith(LOGIN_URL)); driver.navigate().to(APP_SERVER_BASE_URL + "/customer-portal"); Assert.assertTrue(driver.getCurrentUrl().startsWith(LOGIN_URL)); - loginPage.cancel(); - System.out.println(driver.getPageSource()); - Assert.assertTrue(driver.getPageSource().contains("Error Page")); } public void testServletRequestLogout() throws Exception { diff --git a/testsuite/integration/src/test/java/org/keycloak/testsuite/forms/LoginTest.java b/testsuite/integration/src/test/java/org/keycloak/testsuite/forms/LoginTest.java index 1ce2a91dc1..bb6292267e 100755 --- a/testsuite/integration/src/test/java/org/keycloak/testsuite/forms/LoginTest.java +++ b/testsuite/integration/src/test/java/org/keycloak/testsuite/forms/LoginTest.java @@ -470,20 +470,6 @@ public class LoginTest { } } - @Test - public void loginCancel() { - loginPage.open(); - loginPage.cancel(); - - Assert.assertEquals(RequestType.AUTH_RESPONSE, appPage.getRequestType()); - Assert.assertEquals("access_denied", oauth.getCurrentQuery().get(OAuth2Constants.ERROR)); - - events.expectLogin().error("rejected_by_user").user((String) null).session((String) null) - .removeDetail(Details.USERNAME) - .removeDetail(Details.CONSENT) - .assertEvent(); - } - // KEYCLOAK-1037 @Test public void loginExpiredCode() { diff --git a/testsuite/integration/src/test/java/org/keycloak/testsuite/oauth/AuthorizationCodeTest.java b/testsuite/integration/src/test/java/org/keycloak/testsuite/oauth/AuthorizationCodeTest.java index 784318f5f4..d3a47e08a9 100755 --- a/testsuite/integration/src/test/java/org/keycloak/testsuite/oauth/AuthorizationCodeTest.java +++ b/testsuite/integration/src/test/java/org/keycloak/testsuite/oauth/AuthorizationCodeTest.java @@ -120,39 +120,6 @@ public class AuthorizationCodeTest { }); } - @Test - public void authorizationRequestInstalledAppCancel() throws IOException { - keycloakRule.update(new KeycloakRule.KeycloakSetup() { - @Override - public void config(RealmManager manager, RealmModel adminstrationRealm, RealmModel appRealm) { - appRealm.getClientNameMap().get("test-app").addRedirectUri(Constants.INSTALLED_APP_URN); - } - }); - oauth.redirectUri(Constants.INSTALLED_APP_URN); - - oauth.openLoginForm(); - driver.findElement(By.name("cancel")).click(); - - String title = driver.getTitle(); - Assert.assertEquals("Error code: access_denied",title); - - String error = driver.findElement(By.id(OAuth2Constants.ERROR)).getText(); - assertEquals("access_denied", error); - - events.expectLogin().error("rejected_by_user").user((String) null).session((String) null) - .removeDetail(Details.USERNAME) - .removeDetail(Details.CONSENT) - .detail(Details.REDIRECT_URI, "http://localhost:8081/auth/realms/test/protocol/openid-connect/oauth/oob") - .assertEvent().getDetails().get(Details.CODE_ID); - - keycloakRule.update(new KeycloakRule.KeycloakSetup() { - @Override - public void config(RealmManager manager, RealmModel adminstrationRealm, RealmModel appRealm) { - appRealm.getClientNameMap().get("test-app").removeRedirectUri(Constants.INSTALLED_APP_URN); - } - }); - } - @Test public void authorizationValidRedirectUri() throws IOException { keycloakRule.update(new KeycloakRule.KeycloakSetup() {