RE: How to get the RoleManager
That won't help - I think shared sessions only work between two WARs in the same app. The only thing I can suggest is using some sort of cookie based system where you track via session ID who is logged in (stored in a hashmap or something), then from each app lookup that hashmap (via JNDI) and log in the user programmatically before they are shown the login page. Very fugly though. SSO is one of J2EE's problems. -mike Mike Cannon-Brookes :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of > SAURUGGER,PETER (A-PaloAlto,ex2) > Sent: Thursday, October 11, 2001 1:50 AM > To: Orion-Interest > Subject: RE: How to get the RoleManager > > > Maybe the session=shared attribute would allow you to achieve your goal. > Don't know whether its valid only for sharing between http and https > sessions > > -Original Message- > From: David Potts [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, October 10, 2001 5:02 AM > To: Orion-Interest > Subject: RE: How to get the RoleManager > > > > > > -Original Message- > > From: Mike Cannon-Brookes [mailto:[EMAIL PROTECTED]] > > > > I have a feeling if you made app2 the parent app of app1 it might work > > (they'd probably be the same RoleManager - can't confirm that > > though). > > Thanks for the suggestion. We tried it, but it doesn't work. > When we go to > the second app the login form comes up again. > > > This > > is a non-standard solution (if a solution at all! ;)), then > > again if you're > > using RoleManager you're already using Orion specific code so > > you probably > > don't mind too much. > > > > At the moment we are looking for *any* solution that will do form-based > single signon across two apps on Orion. What is the standard? > > Cheers, > > Dave. >
RE: How to get the RoleManager
Uh, try using the shared session attribute (orion-web.xml) + the same realm name for the login config (web.xml) HTH, JP > -Original Message- > From: David Potts [mailto:[EMAIL PROTECTED]] > Sent: MiƩrcoles, 10 de Octubre de 2001 8:02 > To: Orion-Interest > Subject: RE: How to get the RoleManager > > > > > > -Original Message- > > From: Mike Cannon-Brookes [mailto:[EMAIL PROTECTED]] > > > > I have a feeling if you made app2 the parent app of app1 it > might work > > (they'd probably be the same RoleManager - can't confirm that > > though). > > Thanks for the suggestion. We tried it, but it doesn't work. > When we go to > the second app the login form comes up again. > > > This > > is a non-standard solution (if a solution at all! ;)), then > > again if you're > > using RoleManager you're already using Orion specific code so > > you probably > > don't mind too much. > > > > At the moment we are looking for *any* solution that will do > form-based > single signon across two apps on Orion. What is the standard? > > Cheers, > > Dave. >
RE: How to get the RoleManager
inline On Wed, 10 Oct 2001, David Potts wrote: > > > > -Original Message- > > From: Mike Cannon-Brookes [mailto:[EMAIL PROTECTED]] > > > > I have a feeling if you made app2 the parent app of app1 it might work > > (they'd probably be the same RoleManager - can't confirm that > > though). > > Thanks for the suggestion. We tried it, but it doesn't work. When we go to > the second app the login form comes up again. I think this happens becuase there are different cookies being sent for each application context. There is a shared attribute that can be set in the web-site.xml file which may address this. shared is a attribute of the web-app,default-web-app tags here is a link to the description http://www.orionserver.com/docs/web-site.xml.html > > > This > > is a non-standard solution (if a solution at all! ;)), then > > again if you're > > using RoleManager you're already using Orion specific code so > > you probably > > don't mind too much. > > > > At the moment we are looking for *any* solution that will do form-based > single signon across two apps on Orion. What is the standard? > > Cheers, > > Dave. > >
RE: How to get the RoleManager
Maybe the session=shared attribute would allow you to achieve your goal. Don't know whether its valid only for sharing between http and https sessions -Original Message- From: David Potts [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 10, 2001 5:02 AM To: Orion-Interest Subject: RE: How to get the RoleManager > -Original Message- > From: Mike Cannon-Brookes [mailto:[EMAIL PROTECTED]] > I have a feeling if you made app2 the parent app of app1 it might work > (they'd probably be the same RoleManager - can't confirm that > though). Thanks for the suggestion. We tried it, but it doesn't work. When we go to the second app the login form comes up again. > This > is a non-standard solution (if a solution at all! ;)), then > again if you're > using RoleManager you're already using Orion specific code so > you probably > don't mind too much. > At the moment we are looking for *any* solution that will do form-based single signon across two apps on Orion. What is the standard? Cheers, Dave.
RE: How to get the RoleManager
> -Original Message- > From: Mike Cannon-Brookes [mailto:[EMAIL PROTECTED]] > I have a feeling if you made app2 the parent app of app1 it might work > (they'd probably be the same RoleManager - can't confirm that > though). Thanks for the suggestion. We tried it, but it doesn't work. When we go to the second app the login form comes up again. > This > is a non-standard solution (if a solution at all! ;)), then > again if you're > using RoleManager you're already using Orion specific code so > you probably > don't mind too much. > At the moment we are looking for *any* solution that will do form-based single signon across two apps on Orion. What is the standard? Cheers, Dave.
RE: How to get the RoleManager
Dave, I have a feeling if you made app2 the parent app of app1 it might work (they'd probably be the same RoleManager - can't confirm that though). This is a non-standard solution (if a solution at all! ;)), then again if you're using RoleManager you're already using Orion specific code so you probably don't mind too much. Cheers, Mike Mike Cannon-Brookes :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of David Potts > Sent: Tuesday, October 09, 2001 10:52 PM > To: Orion-Interest > Subject: FW: How to get the RoleManager > > > I'm resending this as it hadn't appeared on the list after 5 hours :-) > > Dave. > > > -Original Message- > > From: David Potts > > Sent: 09 October 2001 09:00 > > To: '[EMAIL PROTECTED]' > > Subject: How to get the RoleManager > > > > > > Hello, > > > > Does anyone know if/how to get the RoleManager for an > > application from outside of that application? > > > > What I'm trying to do is login to app1 and then as part of > > that process programmatically login to app2. > > > > I've seen questions in the archive about how to get the > > RoleManager, but I've not found the definitive answer. I've > > been able to get the java:comp/RoleManager object from within > > the application, but not from an external app. > > > > Any ideas? > > > > Cheers, > > > > Dave. > > > > --- > > David Potts > > Xchanging > > Email: [EMAIL PROTECTED] > > http://www.xchanging.com > > >