Results 1 to 2 of 2

Thread: Persisting Tokens Externally

  1. #1
    Join Date
    Jul 2011
    Posts
    1

    Default 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

  2. #2
    Join Date
    May 2008
    Location
    Salt Lake City
    Posts
    167

    Default

    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
  •