[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Need single sign on solution?

Varun Goel

3/5/2008 11:42:00 AM

Hi All,
I am doing my site user authentication through LDAP server and my
company has 3 more sites with different technologies and they are also
doing user authentication through LDAP server.
Now we want that when user logged in my application 1.domain.com then
user also logged in other application 2.domain.com and 3.domain.com.
Please help me out.
I will be so thankful to all of you?

If u r saying bout session or cookies please give some code example or
detailed description.

Thanks & Regards,
Varun Goel
--
Posted via http://www.ruby-....

1 Answer

Dan Fitzpatrick

3/5/2008 4:21:00 PM

0

Varun Goel wrote:
> Hi All,
> I am doing my site user authentication through LDAP server and my
> company has 3 more sites with different technologies and they are also
> doing user authentication through LDAP server.
> Now we want that when user logged in my application 1.domain.com then
> user also logged in other application 2.domain.com and 3.domain.com.
> Please help me out.
> I will be so thankful to all of you?
>
> If u r saying bout session or cookies please give some code example or
> detailed description.
>
> Thanks & Regards,
> Varun Goel
>

Conceptually, you can assign a session cookie scoped to your domain. So
every host on the domain will receive the cookie with each request. The
cookie can be a key that is stored in the LDAP server or an application
you write. When queried with the key it will return the user data. You
can also encrypt the user data into the cookie itself. This would
require each app that uses the cookie know how to decrypt it.

Cookies are set differently for different frameworks and libs. See your
framework or lib documentation for specifics. The domain part of the
cookie should be something like ".example.com"

Dan