Win a copy of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques this week in the Server-Side JavaScript and NodeJS forum!
  • 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
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

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]
 
permaculture is a more symbiotic relationship with nature so I can be even lazier. Read tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic