diff --git a/examples/as7-eap-demo/server/src/main/webapp/saas/admin/partials/menu.html b/examples/as7-eap-demo/server/src/main/webapp/saas/admin/partials/menu.html
index a7b51ae686..606da93467 100755
--- a/examples/as7-eap-demo/server/src/main/webapp/saas/admin/partials/menu.html
+++ b/examples/as7-eap-demo/server/src/main/webapp/saas/admin/partials/menu.html
@@ -20,7 +20,7 @@
diff --git a/examples/as7-eap-demo/server/src/main/webapp/saas/saas-login.jsp b/examples/as7-eap-demo/server/src/main/webapp/saas/saas-login.jsp
deleted file mode 100755
index e11fc81dfb..0000000000
--- a/examples/as7-eap-demo/server/src/main/webapp/saas/saas-login.jsp
+++ /dev/null
@@ -1,82 +0,0 @@
-<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
- pageEncoding="ISO-8859-1"%>
-
-
-
- Log in to Keycloak
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/sdk-html/src/main/java/org/keycloak/sdk/LoginBean.java b/sdk-html/src/main/java/org/keycloak/sdk/LoginBean.java
index 825f76ca51..57b01f3dfe 100644
--- a/sdk-html/src/main/java/org/keycloak/sdk/LoginBean.java
+++ b/sdk-html/src/main/java/org/keycloak/sdk/LoginBean.java
@@ -24,6 +24,8 @@ public class LoginBean {
private RealmModel realm;
+ private String name;
+
private String loginAction;
private String socialLoginUrl;
@@ -49,6 +51,12 @@ public class LoginBean {
HttpServletRequest request = (HttpServletRequest) ctx.getExternalContext().getRequest();
realm = (RealmModel) request.getAttribute(RealmModel.class.getName());
+
+ if (RealmModel.DEFAULT_REALM.equals(realm.getName())) {
+ name = "Keycloak";
+ } else {
+ name = realm.getName();
+ }
loginAction = ((URI) request.getAttribute("KEYCLOAK_LOGIN_ACTION")).toString();
socialLoginUrl = ((URI) request.getAttribute("KEYCLOAK_SOCIAL_LOGIN")).toString();
@@ -87,7 +95,7 @@ public class LoginBean {
}
public String getName() {
- return realm.getName();
+ return name;
}
public String getLoginAction() {
diff --git a/services/src/main/java/org/keycloak/services/resources/AbstractLoginService.java b/services/src/main/java/org/keycloak/services/resources/AbstractLoginService.java
index 68ce73f197..e6bc14a64f 100755
--- a/services/src/main/java/org/keycloak/services/resources/AbstractLoginService.java
+++ b/services/src/main/java/org/keycloak/services/resources/AbstractLoginService.java
@@ -29,9 +29,9 @@ public abstract class AbstractLoginService {
@Context
HttpResponse response;
- protected String securityFailurePath = "/saas/securityFailure.jsp";
- protected String loginFormPath = "/sdk/login.xhtml";
- protected String oauthFormPath = "/saas/oauthGrantForm.jsp";
+ public final static String securityFailurePath = "/saas/securityFailure.jsp";
+ public final static String loginFormPath = "/sdk/login.xhtml";
+ public final static String oauthFormPath = "/saas/oauthGrantForm.jsp";
protected RealmModel realm;
protected TokenManager tokenManager;