Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

SSO: How to secure toplevel Page?!

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
After struggling with understanding the API of the SSO-Class for a while, I finally managed to enable the Authentication via a Cookie set by another webapp underneath the same domain.

Now I want to secure the toplevel-Page of the forum: Is there a way to trigger the redirect to the login-page, whenever someone hits the default page of the Forum ( entering http://myurl/jforum without a set cookie shall redirect to my custom login-page).

Anybody knows how this can be done?!

Cheers
Stefan


[originally posted on jforum.net by mugwump]
 
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
There's probably a fancier way to do this but this came to mind first.... Add the following code in the <head> section of the header.htm template file:

<br /> <br /> But in the back of my mind, I seem to remember a better way to do this... sigh. <br /> [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
That is fine, thx! I'll use this hack and if a more elegant solution comes to your mind, don't hesitate to post it
[originally posted on jforum.net by mugwump]
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic