开发者

Sharing session (or cookie) using Grails acegi plugin

开发者 https://www.devze.com 2022-12-28 01:46 出处:网络
Is it possible for two different Grails project, also having d开发者_开发问答ifferent domains, to share a session/cookie?

Is it possible for two different Grails project, also having d开发者_开发问答ifferent domains, to share a session/cookie?

Let's say I have 2 sites: www.mycompany.com, and, www.othercompany.com. Assume that both sites are having same domains, and same database and records too. What I want to know is if this code:

authenticateService.userDomain()

or even the

authenticateService.isLoggedIn()

will behave and return exactly the same object/result whether it is called in either of the site.

Basically, what we need is a solution for sharing/identifying logged in user between two different sites. Need more details on how to implement this using acegi 0.5.2 and grails 1.2.1.

Hoping for any leads on this. Thank you.


Regarding cross-domain authentication the only thing that comes into my mind is using a single-sign-on service. There are a few open-source SSO implementations available, among them:

  • CAS
  • OpenSSO
  • Josso
  • Tomcat also has a SingleSingOn valve

This list is by far not complete. Speaking of CAS it definitly works with Grails and Acegi.

0

精彩评论

暂无评论...
验证码 换一张
取 消