Help coderanch get a
new server
by contributing to the fundraiser
  • 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
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Login User out JForum

 
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 want login one user with one html form into my web page, I am found the method that do this with username and password parameters, but i think that i am doing something bad..., What method of who class i have to use?, thanks!!

Nowadays, I am try with "validateLogin()" of "net.jforum.view.forum" package.

PD: Later of validateLogin, What parameters i must modify to login one user in current sesion?
[originally posted on jforum.net by MiLLeN]
 
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 am frustrated... SSO system, is not appropiated to me, because i want that one user can loggin into JForum too, two possibilities:

1- User log in my web app, out JForum, and when he go to JForum he is log on...
2- Useg go to JForum, and loggin...

I want, that i must validate user using anywhere method in anywhere class..., but i no achieve it...

I try to loggin from one Action class...:



But, i obtain one NullPointerException error...
[originally posted on jforum.net by MiLLeN]
 
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 can't see how that's going to work. Through your code you want to use JForum's auth system to authenticate an user? That user exists only in JForum, or do you have other code base that would like to use?

Rafael
[originally posted on jforum.net by Rafael Steil]
 
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

Rafael Steil wrote:I can't see how that's going to work. Through your code you want to use JForum's auth system to authenticate an user? That user exists only in JForum, or do you have other code base that would like to use?

Rafael



Hi Rafael, thanks for your interest in my problem.

I want login with one JForum user, JForum is in my application, all center of data (except someone tables), Then, I want auth one user call JForum authenticate user, and I only give JForum method, the User and Password or if I need, editing one small part of code... Then, user'll be auth in JForum context and when he go to JForum, he'll be authentificated.

I need that user is auth to show in my application, some data, who username, private sections, private messages... etc.

Thanks for you help again.
[originally posted on jforum.net by MiLLeN]
 
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
The main problem here is that you can't use JForum's action out of the box. If you don't have two login pages - one of your own and another for JForum - then the easiest approach is to use JForum's login page, passing the parameter "returnPath" if you want a redirect in case of success. On the other hand, if you have your own login page already, and want that integrated with JForum, then SSO is the way to go.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic