• 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
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Single sign on (SSO) of a web site application and jforum

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello everyone

I need to integrate jforum into a web application (that uses a login thru jdbc realm configured on server.xml), so that login into the web application makes it also logged in the jforum application

grateful for giving steps of how to proceed

thanks
 
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Where do you see the difference between "the web application" and "the jforum application"? JForum is just a servlet and a few servlet filters - it can be part of any web app you already have. JForum does its own thing about users, though - it keeps that information in its own DB table. So you should configure the JDBC realm to access that user table.
 
mike lan
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Lester Burnham wrote:Where do you see the difference between "the web application" and "the jforum application"? JForum is just a servlet and a few servlet filters - it can be part of any web app you already have. JForum does its own thing about users, though - it keeps that information in its own DB table. So you should configure the JDBC realm to access that user table.



thanks replying,
that rises another question
how do i embed a web application into another? mainly the Web-inf folder with web.xml files and lib.
 
Lester Burnham
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can't embed one in the other - you'd merge them, especially the contents of the respective web.xml files, and of course the two directory hierarchies.
 
Saloon Keeper
Posts: 28123
198
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What you actually need to do us use a Tomcat realm that supports SSO and bind it to each of the webapps that need to participate in an SSO environment. There are several SSO realm modules available, although at last count, I don't think any of them actually ship as part of Tomcat itself. The Yale CAS system is a popular one.
 
Barry's not gonna like this. Barry's not gonna like this one bit. What is Barry's deal with tiny ads?
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic