Support offline refresh tokens in OAuthTokenExchanger.
This adds support for requesting offline access for the new token (via the 'offline' field in the gRPC request). This also suppports providing the new OAuth refresh token (as well as the access token) to the callback. This functionality will be used for updating the host's config, in case the stored refresh token has insufficient scopes. This will be provided by a separate class in an upcoming CL. The OAuthTokenGetter is not affected - it will always use "online" mode to transparently deliver access-tokens with required scopes. Bug: 954427 Change-Id: I6a09677b3a8cc0e9a61e98dc4bb084031c77cc9c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1625955 Commit-Queue: Joe Downing <joedow@chromium.org> Reviewed-by:Joe Downing <joedow@chromium.org> Cr-Commit-Position: refs/heads/master@{#662489}
Showing
Please register or sign in to comment