• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Jforum integration problem with SSO

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
monroe,
Thank you for the advice, I got the problem solved.


[originally posted on jforum.net by seaman]
 
Don't touch me. And dont' touch this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic