Jan 27th, 2011, 07:40 PM
Access Session in InMemoryOAuth2ClientTokenServices
Is it possible to access the Session object from within InMemoryOAuth2ClientTokenServices ? I want to do that so i can access an attribute inside the session and eventually use the attribute to construct the key for USER_TO_RESOURCE_TO_TOKEN.
Jan 31st, 2011, 11:12 PM
You may be able to get it from the "getDetails" of the Authentication. If not, I'm afraid you'll have to get it from a ThreadLocal variable. I think Spring MVC has a servlet filter that will set up the request in a ThreadLocal...
Let us know what you find!