Announcement Announcement Module
Collapse
No announcement yet.
Spring security Programmatic Authentication (& remember user for next activity) Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring security Programmatic Authentication (& remember user for next activity)

    My web application also interacts with and iPad client.
    I have written programmatic authentication for iPad client and regular web interaction use Form based authentication.
    For iPad client, i m returning jsessionid token, when they successfully authenticate. My problem is how do i remember the iPad user like regular web user for next subsequent request? iPad user has jsession token with them.

    LoginStatus loginStatus = springSecurityLoginService.login(username, password);
    HttpSession session = request.getSession();
    String sessionId = session.getId();

    Map<String, String> oMap = new HashMap<String, String>();
    oMap.put("jsessionid", sessionId);
    mDv.addObject("oMap", sessionId);

    Above is code snippet from my app.

    springSecurityLoginService.login(username, password); will create Spring security context.

    -Kindly help!!
Working...
X