Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a noninteractive authenticator #159

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on Aug 14, 2021

  1. feat(Authenticator): add a guaranteed noninteractive authenticator

    Add an authenticator that stores refresh tokens an an application
    secret, so that it can be serialized/deserialized and used in a
    non-interactive program.
    sean-purcell committed Aug 14, 2021
    Configuration menu
    Copy the full SHA
    38be276 View commit details
    Browse the repository at this point in the history
  2. feat(NoninteractiveAuthenticator): add a builder for serializable tok…

    …ens using another authenticator
    
    Expose a way to create `NoninteractiveTokens` using another (presumably
    `InstalledFlow` or `DeviceFlow`) authenticator.  It makes a request for
    tokens, and then stores just the refresh token, assuming that the access
    token will be expired by the time it's used.  There's no clean exposed
    way to refresh the refresh tokens, but it's easy to do (if somewhat
    awkwardly) by creating a new builder using a current NoninteractiveFlow
    authenticator, so this feature doesn't add it.
    sean-purcell committed Aug 14, 2021
    Configuration menu
    Copy the full SHA
    1b13ce9 View commit details
    Browse the repository at this point in the history