aspose file tools*
The moose likes JForum and the fly likes Jforum integration problem with SSO Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » JForum
Bookmark "Jforum integration problem with SSO" Watch "Jforum integration problem with SSO" New topic
Author

Jforum integration problem with SSO

Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
I just integrated JForum with SSO under my app using iframe. I use the login page under my application. If user logged in before going my forum page which is ok. But if user go to the forum page without login first, JForum will redirect it to app's login page inside the iframe. I am just wondering is there anywhere that I can make JForum to refresh the parent instead of the iframe.

I found the javascript on the net that could do the job but the SSO cookie somehow got lost after login or didn't create.

I am just wondering if there are any good solution.

Thanks!
[originally posted on jforum.net by seaman]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
I think you can set up the redirect page to be a simple javascript redirect to the parent window. Something like:

window.parent.location = "myAppLoginPage.jsp?parameters...";

I'm pretty sure most browsers treat IFRames like a normal frameset element and this will work to load the login page of your application at the browser's top level.

Alternatively, you could check in the page with the jForum IFrame if the person is logged on or not. If they aren't, then just display a notice that you need to log on.
[originally posted on jforum.net by monroe]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
monroe,
Thank you for the advice, I got the problem solved.


[originally posted on jforum.net by seaman]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Jforum integration problem with SSO