Results 1 to 2 of 2

Thread: Access Session in InMemoryOAuth2ClientTokenServices

  1. #1

    Default 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. #2
    Join Date
    May 2008
    Location
    Salt Lake City
    Posts
    167

    Default

    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
  •