}
username = authSplit[0];
token = authSplit[1];
- return true;
}
-
- Cookies.setCookie(otherProperties.get("authCookie"), username + conf.cookieSeparator() + token, null, "", "/", false);
+ else
+ Cookies.setCookie(otherProperties.get("authCookie"), username + conf.cookieSeparator() + token, null, "", "/", false);
+
+ String gotoUrl = Window.Location.getParameter("goto");
+ if (gotoUrl != null && gotoUrl.length() > 0) {
+ Window.Location.assign(gotoUrl + "?X-Auth-Token=" + token);
+ return false;
+ }
return true;
}
*/
protected void authenticateUser() {
Dictionary otherProperties = Dictionary.getDictionary("otherProperties");
- Window.Location.assign(otherProperties.get("loginUrl"));
+ Window.Location.assign(otherProperties.get("loginUrl") + Window.Location.getHref());
}
protected void fetchAccount(final Command callback) {