Hello Kranthi,

I recently implemented single-sign-on for roller on our website.
I disabled roller's login/logout pages, and redirected them to our
site's custom login system.  Then, on our login, I added code
to add a name/value pair of sessionID/userID into a "shared_users" 
hashtable shared by both the main and the blog contexts. (see code below)

I then created an LHProcessingFilter class that finds the root context's
session ID, and looks it up in the shared hashtable. This tells you if a
user session is logged in or not.

Our ACEGI filter chain is:

httpSessionContextIntegrationFilter,lhProcessingFilter,remoteUserFilter,channelProcessingFilter,anonymousProcessingFilter,exceptionTranslationFilter,filterInvocationInterceptor

Added an LHAuthenticationProvider class as an authenication provider,
and bingo...

Of course, there are other tweaks elsewhere for logouts and such, 
but the above is the main idea.

Good luck.

    --G


-------------------------------------------------------------------
ServletContext ctx = session.getServletContext().getContext("/blog");
if (ctx!=null) {
    Hashtable shareddata = (Hashtable)ctx.getAttribute("shared_users");
    if (shareddata==null) {
        shareddata = new Hashtable();
    }
    if (visItem.loggedin) {
        shareddata.put(session.getId(), Integer.toString(visItem.id));
    } else {
        shareddata.remove(session.getId());
    }
    ctx.setAttribute("shared_users", shareddata);
}
-------------------------------------------------------------------



On Fri, Oct 24, 2008 at 03:03:34AM -0700, kranthi kumar wrote:
> 
> Hi,
>       I am trying roller for blogs in my site. I am developing my site in
> Flex2+java and i am having a link in the site clicking on which will take
> the user to the roller login page. Now my problem is i want the user to
> directly login into his blog using the same credentials which the user uses
> to login into my site(I dont want separate credentials for roller and my
> site). I dont want roller to be as a separate entity.It should be as an
> integral part of my site as far as the login is concerned. Is this
> possible???? If it is possible then what are the changes that i need to
> do???? Please advise me.
> Thanks
> Kranthi Kumar.Chamarthi
> -- 
> View this message in context: 
> http://www.nabble.com/Roller-Login-tp20147436s12275p20147436.html
> Sent from the Roller - User mailing list archive at Nabble.com.
> 

-- 
Guillermo Payet
L O C A L H A R V E S T
http://www.localharvest.org

Reply via email to