Announcement Announcement Module
Collapse
No announcement yet.
reload an authenticated user on frontend app via backoffice app Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • reload an authenticated user on frontend app via backoffice app

    we have 2 apps, frontend and backoffice webapps.

    on the frontend, users can purchase "credits"

    these purchases remain in a PENDING status until an admin authorizes them in the backoffice.

    however, once authorized, the frontend user needs to logout to see his updated balance.

    I would like to implement a url on the frontend, eg /user/reload/{userId}, that my server will call, and I can then use to "refresh" the principal, so that the next time the user requests SecurityContextHolder.getContext().getAuthenticati on().getPrincipal() they will have the updated data.

    I looked at using SessionRegistry, but this doesnt seem to be what I need

    Thanks in advance
    Shaine

  • #2
    The SessionRegistry could work as this is what determines what the current SecurityContext and Authentication is. You might also refer to this blog post http://blog.springsource.org/2009/01...-in-real-time/

    Comment

    Working...
    X