Announcement Announcement Module
Collapse
No announcement yet.
Persisting Tokens Externally Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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.

    Comment

    Working...
    X