Announcement Announcement Module
Collapse
No announcement yet.
Security context method returns null Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Security context method returns null

    I have an iusse wich I can't work out.
    I'm using Spring Social and Security to allow user get logged in on my web app.
    We offer to an user the possibility to log in using various social networks.
    Suppose I log in with twitter. All works.
    When I try to log with Facebook (or viceversa) I get always a null object from the getContext() method, even if user is yet logged in!
    Why this happens? I'd like to avoid a double/triple entry for an user only because he's logged with another social network.

    Thanks in advance,
    FB

  • #2
    I'm confused as the SecurityContextHolder will always return a non-null value for SecurityContextHolder.getContext(). If there isn't a SecurityContext present, it returns an empty one. Are you using a different SecurityContextHolderStrategy?

    Comment

    Working...
    X