Announcement Announcement Module
Collapse
No announcement yet.
How to intercept the JSON token info? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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?

    Comment


    • #3
      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.

      Comment

      Working...
      X