Jul 19th, 2011, 02:24 PM
Persisting Tokens Externally
In our implementation, we have a standalone OAuth2 Provider that
needs to persist the tokens externally. So, i extend from RandomValueOAuth2ProviderTokenServices and override the persistence methods.
At the time of persisting, i would like to also persist the "flow" through
which this Token was created.
Any pointers on how to get this information?
Jul 21st, 2011, 06:14 PM
I suggest overriding the createAccessToken(OAuth2Authentication) method and looking at the type of the client credentials.
String type = authentication.getClientAuthentication().getClass( ).getName();
or something like that.