• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

Can I integrate JForum with my existing registration process

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an existing registration process on the site and would want to integrate JForum registration in that process. Is this possible and where can I look to understand how to do this?
[originally posted on jforum.net by Anonymous]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, you can. There is a LoginAuthenticator interface you can use, but I highly recommend to try version 2.1.5 (still in development, so you have to get from cvs - http://www.jforum.net/development.jsp ).

Take a look at http://www.jforum.net/confluence/display/sso/Home

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, I'm in the same process, I'm trying to understand the way to connect jforum with my website.
What I already did:
1) downloaded the cvs version of jforum.
2) Followed the steps in http://www.jforum.net/confluence/display/sso/SSO to use SSO.
3) Followed the manual instalation http://www.jforum.net/development.jsp
4) Im using eclipse, so I run the ant through eclipse. The result war file was 11k in size.
5) I tried to acces the link http://localhost:8080/jforum
It prompted me to stargate realm authentication...

I dont't know how to continue:

What i Want to do:
From a jsp in my site click on forum link and automatically login the user into the forum. authenticating it against my database.

I want to use the username, email and password from my database and then let jforum use its tables.

Then I want to disable register option since they will register through my website.

So questions:

1. Has anybody been able to do this?

2.What parameters should be set in my jsp to automatically authenticate the user?

3.Should I modify the generic_queries.sql to be able to point to my tables?

4. How do I remove the register option?

5. Is there any document from someone that already did this? ( If not, I will post mine, when I make it)

6. What version of jforum is the best to achieve what I just described?

Thanks for all your help and cooperation.







[originally posted on jforum.net by leonardovarela]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For that, you should use a LoginAuthenticator: http://www.jforum.net/confluence/display/sso/LoginAuthenticator

You can use the default implementation (DefaultLoginAuthenticator) as a start

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply Rafael. I really appreciate it.

Ok, using Login Authenticator.
I query my database for username and password. It works. I modified the mysql_generic.sql to point to my tables, and I merged my database's tables with the ones of Jforum.

I logged in a user which has id=1 in my users table and it logged him as a Anonymous. then I logged in the user with id=2 in my table and it logged in the user as Admin.

Then I Logged in the user which has id=3 and it was an error.

Do I have to create the user in both tables when I create it in my system? (both tables= my users table and jforums users table)

Is it smart to merge the two tables into one?

I don't care changing the queries on my system to point to user_id instead of id and to point to user_email instead of email.

Thanks for the feedback.

-Leonardo




[originally posted on jforum.net by leonardovarela]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

Just another question,

Should I download Head from the repository, or a version of jForum?
Which is the best choice?

Thanks,

-Leonardo
[originally posted on jforum.net by leonardovarela]
 
No prison can hold Chairface Chippendale. And on a totally different topic ... my stuff:
Enterprise-grade Excel API for Java
https://products.aspose.com/cells/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!