• 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:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Login from custom 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
Hi! I've a custom form login which should be able to login a user into jforum. I don't wanna enable SSO. There is a method to send username, passoword, automatic login values from customized form to jforum's login mechanism?
[originally posted on jforum.net by blackskop]
 
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
In theory this would work, if you used the same action, included the hidden fields, and used the same field names as the default login form does.

An alternative would be to modify the forum_login.htm template to be your custom login screen.
[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
Thank you. I'll try soon.
[originally posted on jforum.net by blackskop]
 
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

monroe wrote:In theory this would work, if you used the same action, included the hidden fields, and used the same field names as the default login form does.

An alternative would be to modify the forum_login.htm template to be your custom login screen.



It works!

Next step: there is an hidden field

>

which is used, i suppose, on successful login redirection. In this case, how can i pass to "returnPath" username and password fields used in previous form?
[originally posted on jforum.net by blackskop]
 
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
You could use a JavaScript "onsubmit" event on the form that would modify the returnPath URL to include parameters based on what the user entered.

Alternatively, you could modify the "action" code that processes the form to do this.
[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

monroe wrote:You could use a JavaScript "onsubmit" event on the form that would modify the returnPath URL to include parameters based on what the user entered.



Can you explain it with an example?
[originally posted on jforum.net by blackskop]
 
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
Some quick, not tested code... would be:




[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
Cool! I'm going to work on it... stay tuned! Thank you so much!
[originally posted on jforum.net by blackskop]
 
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
Your code seems to work, this is my implementation


so, jforum.page redirects a call to loginservlet which is



and it works fine! Thank you very very much!
[originally posted on jforum.net by blackskop]
 
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
Hi All,

I want to implement jforum in my current project (java spring).

I have already done login using spring security.

Now I not need the login of jforum.

and every one can put posting and access all the detials.

in short I do not required the login module of jforum.

Is it possible.

Thanks in advance.

Regards,

Chetan Patel





[originally posted on jforum.net by chetan]
 
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
What you are asking about is know here as Single Sign On (or SSO). jForum has an API that can be used to create a SSO class to match your existing application.

Look at the (somewhat outdated) docs here:

http://www.jforum.net/doc/SSO

Also check out my bookmarks for some SSO discussions and code examples.

http://www.jforum.net/bookmarks/list/2198.page

Finally, just do some searching thru the site for SSO topics.

If you still need info, start a new topic with your requests (this one doesn't really imply SSO.. but you didn't know that when you posted..)
[originally posted on jforum.net by monroe]
 
reply
    Bookmark Topic Watch Topic
  • New Topic