Uploaded image for project: 'Nuxeo Java Client'
  1. Nuxeo Java Client
  2. JAVACLIENT-204

Propose a way to be called when an OAuth2 token is refreshed

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: next
    • Component/s: API

      Description

      Currently, the OAuth2AuthInterceptor can refresh the OAuth2 token it has if it comes to expire. This is done under the hood by the interceptor itself, preventing 401 error.

      Nevertheless, in some context, we may want to get back the new access and refresh tokens in order to persist them in an external backend for instance.

      A possible solution would be to introduce an interface that will acts as a callback called after the tokens are refreshed. The interface should have only classic JDK types.
      This mechanism will require new APIs to instantiate the OAuth2AuthInterceptor.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kleturc Kevin Leturc
                Reporter:
                kleturc Kevin Leturc
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: