• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

SSO - email and password in Session

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi guys,

First, thanks a bunch for this opensource forum software. This is my third day after downloading JForum and very close to getting it integrated into my webapp. I have an issue which is not JForum related but I am having trouble passing the email and password in session for UserCookieSSO. I have deployed JForum in a separate context from my webapp. When I redirect the request back to JForum after successful authentication, the SSO only picks up the username from cookie. It fails to read the email and password attribute. On further investigation I found that the session ids for the user are different when I authenticate the user in my webapp and when I access the sesion from SSO implementation. I am using tomcat 5.5.

Did anyone else see this problem? Any thoughts on how I can get around this?

Thanks.
[originally posted on jforum.net by shah_m]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I also tried enabling crossContext=true in my webapplication context and jforum context. I can still see two JSession cookies set in my browser by tomcat. One for path / and another for /jforum. Is there any way I can configure both apps to use one JSession cookie? I will also check tomcat mailing list and update if I find anything.

Thanks.
[originally posted on jforum.net by shah_m]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I ended up loading user data from my database inside UserCookieSSO authenticate method. I extract email and password and set it in session context. It worked. Now I see users automatically created in JForum with correct email and password.
[originally posted on jforum.net by shah_m]
 
Climb the rope! CLIMB THE ROPE! You too tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic