• 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
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

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]
 
Legend has it that if you rub the right tiny ad, a genie comes out.
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic