posted 18 years ago
I configured my JForum as SSO to be integrated with Liferay Portal Server. The problem I'm facing now is how to access the admin control panel !!!
I could manage this in the SSO class by checking the username and if it's the admin user of the portal then try to put the session info for the admin user of JForum:
if (userName != null && userName.equals("liferay.com.1")) {
System.out.println("LiferaySSO------>its admin--->");
session.setAttribute("user", "Admin"); // and email address (my username)
session.setAttribute("password", "admin"); // set correct password
session.setAttribute("sso.password.attribute", "admin");
ControllerUtils.addCookie("JforumSSO", "Admin"); //refresh
return "Admin";
}
Yet, it didn;t solve the problem!! every time I click on the control panel it redirects me to the login page but the login page is not enabled as long I'm using SSO ..
[originally posted on jforum.net by Anonymous]