Hi, Anyone know whether the scope of Rails Sessions can cross multiple web applications? Can I build my user management (registration, authentication, managing roles, profile management) in a single rails web application and to be shared with other web applications? (assuming they are deployed on the same hosted server) If yes what would be the constaints? Would the web applications have to share the same domain name? Could sub-domains be used for each web application, or would all the apps have to be in the same domain specifically (c.f. use of sub-domains). That is could I have http://app1.mydomain.com/, and http://app2.mydomain.com, and http://usermanagement.mydomain.com? Tks -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
bump - still interested any anyone knows the answer to this one? On 8/25/06, Greg Hauptmann <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > > Hi, > > Anyone know whether the scope of Rails Sessions can cross multiple web > applications? > > Can I build my user management (registration, authentication, managing > roles, profile management) in a single rails web application and to be > shared with other web applications? (assuming they are deployed on the > same hosted server) > > If yes what would be the constaints? Would the web applications have to > share the same domain name? Could sub-domains be used for each web > application, or would all the apps have to be in the same domain > specifically (c.f. use of sub-domains). That is could I have > http://app1.mydomain.com/, and http://app2.mydomain.com, and > http://usermanagement.mydomain.com? > > Tks >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Michael Gorsuch
2006-Aug-26 04:04 UTC
Re: can Sessions scope cross multi-apps? single sign-on?
Do your apps share the same database? If so, then it sounds pretty easy. You''d want to make sure that your cookie scope is set to use the entire domain rather than just the host (domain.com instead of user.domain.com), and the cookie can be used on any app within that domain scope. Just throwing this out. I think it could work. On 8/25/06, Greg H <greg.hauptmann.ruby-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > bump - still interested any anyone knows the answer to this one? > > > On 8/25/06, Greg Hauptmann <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org > wrote: > > > > > > Hi, > > > > Anyone know whether the scope of Rails Sessions can cross multiple web > > applications? > > > > Can I build my user management (registration, authentication, managing > > roles, profile management) in a single rails web application and to be > > shared with other web applications? (assuming they are deployed on the > > same hosted server) > > > > If yes what would be the constaints? Would the web applications have to > > share the same domain name? Could sub-domains be used for each web > > application, or would all the apps have to be in the same domain > > specifically (c.f. use of sub-domains). That is could I have > > http://app1.mydomain.com/, and http://app2.mydomain.com, and > > http://usermanagement.mydomain.com? > > > > Tks > > > > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Tks Michael - would this be a manual activity I''d have to do (i.e. this wouldn''t work by default?). I could use the rails cookie mechanisms then I guess? On 8/26/06, Michael Gorsuch <michael.gorsuch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Do your apps share the same database? If so, then it sounds pretty easy. > You''d want to make sure that your cookie scope is set to use the entire > domain rather than just the host (domain.com instead of user.domain.com), > and the cookie can be used on any app within that domain scope. > > Just throwing this out. I think it could work. >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Michael Gorsuch
2006-Aug-26 04:19 UTC
Re: can Sessions scope cross multi-apps? single sign-on?
From what I can recall, the cookie is set to a host specifc scope instead of the entire domain. So yeah, you''d have to alter it. On 8/25/06, Greg H <greg.hauptmann.ruby-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Tks Michael - would this be a manual activity I''d have to do (i.e. this > wouldn''t work by default?). I could use the rails cookie mechanisms then I > guess? > > > > On 8/26/06, Michael Gorsuch <michael.gorsuch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > Do your apps share the same database? If so, then it sounds pretty > > easy. You''d want to make sure that your cookie scope is set to use the > > entire domain rather than just the host ( domain.com instead of > > user.domain.com), and the cookie can be used on any app within that > > domain scope. > > > > Just throwing this out. I think it could work. > > > > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---