/otoken

cli and module to perform oauth

Primary LanguageGoApache License 2.0Apache-2.0

OToken

OToken gets OAuth client process into native app.

It contains a few packages implemented oauth2.TokenSource,

  • The appauth.TokenSource implemented OAuth2 native app authorization described in RFC8252
  • The devauth.TokenSource implemented OAuth2 device authorization grant process described in RFC8628
  • The refresher.TokenSource implemented refresh grant flow described in RFC6749
  • The tokenstore.CachedTokenSource is a TokenSource that allows you read token from a struct implemented tokenstore.Store interface, and save new token to such store after created.