Results 1 to 3 of 3

Thread: How to intercept the JSON token info?

Hybrid View

  1. #1
    Join Date
    Mar 2011
    Posts
    8

    Default How to intercept the JSON token info?

    Hello,

    Is there a way to intercept somehow the JSON that comes back with the token? It looks strange that I'm asking for this, but the provider is sending on the JSON envelope more info besides the token and it will be good to get that info instead of doing another query to the provider.

    Thank you.

  2. #2
    Join Date
    May 2008
    Location
    Salt Lake City
    Posts
    167

    Default

    The way to do this is to implement your own custom instance of org.springframework.security.oauth2.common.OAuth2S erializationService. (Consider extending org.springframework.security.oauth2.common.Default OAuth2SerializationService.)

    The tricky part is wiring it up. There should be config attribute for you, but there isn't. Woops. There's one on the provider-side, but not on the client-side. I've opened up a JIRA issue for you:

    https://jira.springsource.org/browse/SECOAUTH-54

    Right now, you've got to deal with a big mess of wiring up your custom beans. How bad do you need it before 1.0.0.M4?

  3. #3
    Join Date
    Mar 2011
    Posts
    8

    Default

    Hey don't worry I can't wait until M4 gets out.

    I just need to do one more query to get the info I need no big deal.

    Thanks again for your help.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •