Apr 1st, 2011, 11:14 PM
How to intercept the JSON token info?
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.
Apr 4th, 2011, 12:04 PM
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:
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?
Apr 4th, 2011, 12:19 PM
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