Hi
Jforum rocks:) and support of Raefell,monroe.
I am integrating my struts2 application with Jforum. I have two wars. Now i took the CookieSSO given by Monroe and modified my SystemGlobal.properties. Following is the cookie in my
jsp
<%
<br /> User userObj = (User) SecurityContextHolder.getContext().getAuthentication().getPrincipal();
<br />
String username = userObj.getEmail();
<br /> String password = userObj.getPassword();
<br /> Cookie cookie = new Cookie("sso-auto-login",username);
<br /> cookie = new Cookie("sso-auto-login",password );
<br /> cookie.setMaxAge( -1 );
<br /> cookie.setPath( "/" );
<br /> response.addCookie( cookie );
<br /> out.flush();
<br /> %>
But when i put SOP in CookieSSO.java its showing the mycookie as null.
myCookie = ControllerUtils.getCookie( SSO_COOKIE_NAME );
Did i miss something in jsp or Systemglobal.properties???
I am putting both userid,password in cookie.
Cookie cookie = new Cookie("sso-auto-login",username);
cookie = new Cookie("sso-auto-login",password );
When i printed these two in jsp i am able to see them. But the whole cookie is coming as null.
SystemGlobal.prop
sso.implementation = net.jforum.sso.CookieSSO
sso.cookie.name=sso-auto-login
sso.cookie.path=/
cookie.name.data = jforumUserId
cookie.name.user = jforumUserInfo
cookie.name.autologin = jforumAutoLogin
cookie.name.userHash = jforumUserHash
authentication.type = sso
login.authenticator = net.jforum.sso.DefaultLoginAuthenticator
Please let me know where things went wrong
Thanks
Greg
[originally posted on jforum.net by gregjhonson]