-
Jul 19th, 2011, 02:24 PM
#1
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?
Thanks!
anu
-
Jul 21st, 2011, 06:14 PM
#2
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules