- All Implemented Interfaces:
- org.springframework.social.UserIdSource
public class SessionUserIdSource
extends java.lang.Object
implements org.springframework.social.UserIdSource
UserIdSource implementation that uses the session ID as the user ID.
Convenient for applications that don't maintain their own notion of a user.
Relies on RequestContextHolder for obtaining the session ID.
Will throw an IllegalStateException if there are no request attributes bound to the current thread.
- Author:
- Craig Walls