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

Integrating Jforum with my web application

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello there!

I am in the process of integrating Jforum with my web application.
When I set up sso implementation , I couldn't login into the Admin Control panel.

So I thought of another approach.
can I directly configure session in Jforum, as it it given in configureUserSession (UserSession userSession, User user) in ControllerUtils.java ?


userSession.setAutoLogin(true);
SessionFacade.setAttribute("logged", "1");
I18n.load(user.getLang());


Can anyone please tell me What is the step to do configure it in my application code?

which is

if (pwd.equals(lf.getPassword())) {
User user = populateUserInfo(conn, userId, pwd);
session.setAttribute(PortalConstants.USER, user);
PublishAdvAction pub = new PublishAdvAction();
request.setAttribute(PortalConstants.ACTION, "Display");
ActionForward am = pub.execute(mapping, form, request,
response);
return am;
}


in my LoginAction.java



All I need is when a user log into my application , the username is to be set in Jforum's session.

With the help of other disscussion given in this forum I tried to understand
checkAutoLogin() method and also TestCaseUtils.java.
But I couldn't figure out how it can be called in my LoginAction.java



Can anyone please tell me What is the step to do configure it in my application code?

thanks,
Razia








[originally posted on jforum.net by razia]
 
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
Please read the section Attention to the Admin User at http://www.jforum.net/doc/SSO

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
Hello Rafael,

Thanks for your support!
My SSO implementation works well along with Admin Control Panel.

Jforum is really great!

Thanks,
Razia
[originally posted on jforum.net by razia]
 
The moth suit and wings road is much more exciting than taxes. Or this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic