UBB.Dev
Posted By: ufid using Threads in a single sign on enviro - 01/13/2004 11:29 PM
Before I begin going through and modifying a lot of code... I was hoping someone else has already done this.

I'm trying to setup Threads in a single sign on enviro. The DB Threads is using looks pretty straight forward, and I just need to keep a sep. table that relates our user IDs with the ones in Threads.

How do you change Threads to accept auto registration (the first time at least) and then auto-login afterwards? In other words, I want my users to enter into our main site, and when clicking a link to use Threads, community, I want them automatically logged into the community. Any help or recommendations would be great! Thanks in advance.
Posted By: Astaran Re: using Threads in a single sign on enviro - 01/14/2004 12:48 AM
That depends on the usermanagement you're using in your community.
I've done something similar on my site.
If you are logged in via SSO, ubb.threads will notice that and log you in aswell.
If you log into ubb.threads, the SSO session is also created.

I'm using a login_handler class for this. So I only need to add a few lines to ubb.threads and load another class.


Basically, you have to create the ubb.threads cookies or session within your SSO-script and create your SSO session within the ubb.threads login function.
Posted By: ufid Re: using Threads in a single sign on enviro - 01/14/2004 4:04 PM
Thanks Astaran.

I figured it would be something like that. I'm new to UBB so it's a matter of figuring out how to create those sessions/cookies for UBB and authenticating the users seemlessly.

This is almost a "custom" SSO script. Seperate domains, Web servers. So when a user clicks a Forum link on one of our pages, I grab their unique ID and pass that onto UBB. I guess I'll have to write some "middleman" object to handle the login and authentication for UBB. That's what I was trying to avoid 8-)

Thanks again!
© UBB.Developers