This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JForum and the fly likes Single Sign-On Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » JForum
Bookmark "Single Sign-On" Watch "Single Sign-On" New topic
Author

Single Sign-On

Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
I already got a website that supports JSP/servlet. Now that I found this JForum webapp, I am thinking to incorporate this app to my site.
In my site, I already have a login portion so registered users can log in.
My question is, Is there an existing manual that would guide me to configure JForum in such a way that a user can be automatically authenticated once the logged in user logs in to my site?.

JForum power!
[originally posted on jforum.net by Anonymous]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Currently, the easier way would be to edit src/net/jforum/JForum.java, method checkCookies() and put your logic there. Probably you'll want to check for some session data and etc. Basically, I know that the user is logged in my setting its session var "logged" to "1". Also, there is an instance of "UserSession', but you can let JForum to handle that. Take a look in the method, it's easy to understand.

*Real* SSO is available in the CVS, however it's a development version so far.

Rafael
[originally posted on jforum.net by Rafael Steil]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
By *real* SSO, do you mean that if I'm logged in at, say, the Spring Framework forum, then pop over here to the JForum forum, I'm still logged in? How would that work, since you don't have my username/password over here at JForum?

Or are you talking about something completely different?

(I know, if I was really wanting to know the answer :roll: I could go check out the code from CVS... but for those who are just browsing, like me, it would be nice to know what you meant there.)

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

Joined: Apr 22, 2012
Posts: 17424
Ooops. I realized after posting that Spring Framework is using a competitor, not JForum! Sorry. But my question still stands, say I was at Martian Software on their forum and came over here...

Martian's forum is where I saw your product and came here, btw.

Finally--I'm not the original Anonymous who started this post, but I am of course the one above.
[originally posted on jforum.net by Anonymous]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Hi there,

first, please register here in the board. "Anonymous" make harder to identify people ;)

Now, SSO is already in the CVS HEAD. The documentation is here:

http://www.jforum.net/confluence/display/sso/Home

Please let me know your thoughs.

Rafael
[originally posted on jforum.net by Rafael Steil]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Anonymous wrote:By *real* SSO, do you mean that if I'm logged in at, say, the Spring Framework forum, then pop over here to the JForum forum, I'm still logged in?


Yes, that's the idea.

Rafael
[originally posted on jforum.net by Rafael Steil]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
where can I find the sso class. I don't have it in my net folder right now.
so I cannot change the SystemGlobals.properties file with this line:
"net.jforum.sso.DefaultLoginAuthenticator" because I haven't the folder sso.

And can anyone tell me where to find the line "authentication.type = default" it is not in mine "SystemGlobals.properties".

Thnx in advance,

Henk
[originally posted on jforum.net by henkie]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
As I said before, SSO support is new and only available from the CVS (HEAD branch).

IF you don't want to get the development version, then wait for the next release (without a release date so far)

Rafael
[originally posted on jforum.net by Rafael Steil]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Use Eclipse ;)

Rafael
[originally posted on jforum.net by Rafael Steil]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
So there is no release dat for SSO. But can You give an estimate time when it becomes available.

Because I have tried many things in JBuilder but JForum doesn't work.

Thnx
[originally posted on jforum.net by henkie]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Thnx,

But I have it working now.

But I have a question about SSO which will be in the next release. Is it possible with this SSO that you can authenticate users within your own web apps. I have created an web apps with my own login, and then I want that the user is autmatically logged in into the forum.

But that can be done with the SSO, I assume?

Thnx,

Henk
[originally posted on jforum.net by henkie]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Yes, for sure. Depending the situation you'll have some to some code using the SSO interfaces from JForum, but this is expected to happen, anyway.

Rafael
[originally posted on jforum.net by Rafael Steil]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Well, as you may read in this topic, the support is already in the CVS. In the next release of JForum I'll include it.

Rafael
[originally posted on jforum.net by Rafael Steil]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Does anyone know when the Singel Sign on comes available. I think this is very handy for all the web apps on the internet.

Thnx,

Henk
[originally posted on jforum.net by henkie]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Sorry for asking but what is the number of the release? And when will SSO officialy be released?
[originally posted on jforum.net by henkie]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Is the HEAD branch.

Rafael
[originally posted on jforum.net by Rafael Steil]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
I have looked in the CVS but I can't get it to work. I have downloaded the packaes SSO en DAO. But I get error's and it doesn't seem to work.

I really need the SSO.

Thanks for any reply,

Henk
[originally posted on jforum.net by henkie]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Which errors? The CVS version compiles and runs fine, as far I as I know.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Single Sign-On
 
Similar Threads
Webapp Integration -- SSO issues
User integration
Login doubt!!!!
encryption method...merging tables...etc..
sso and database synchronization