-
Jan 27th, 2011, 07:40 PM
#1
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.
Thank you
-
Jan 31st, 2011, 11:12 PM
#2
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!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules