Java – use spring security 3 to store access tokens on my Grails OAuth provider
I have just implemented the OAuth provider for my Grails application and can successfully validate my client application (using road signs) The next thing I have to do is keep the access token, so my client doesn't have to accept permissions every time On the server, I use the spring security OAuth package
I think I must implement my own oauthprovidertokenservices, but I'm not sure Can I use any out of the box handler, or how?
Thank you list!
Solution
Oauth2 (jdbcoauth2providertokenservices) has an out of the box provider, but it seems that OAuth 1 does not have a similar class Your best choice is to subclass randomvalueprovidertokenservices and implement three abstract persistence related methods Check jdbcoauthprovidertokenservices for code to borrow, especially when serializing authentication objects
I implemented a custom JPA supported oauthprovidertoken service in a similar way, which is very simple