Announcement Announcement Module
No announcement yet.
Access Session in InMemoryOAuth2ClientTokenServices Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

  • #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!