Versions in this module Expand all Collapse all v0 v0.3.0 Jun 20, 2023 v0.2.0 Apr 27, 2023 Changes in this version + const AuthCodeStateName + type AuthInfo struct + AccessTokenURL *string + AuthorizeURL *string + ID *string + Method AuthMethod + Password *string + RedirectURL *string + RequestTokenURL *string + RsaPEMKeyPair *crypto.KeyPair + Secret *string + User *string + func (a AuthInfo) IsTokenAuth() bool + type AuthMethod string + const AM_AppPassword + const AM_OAuth1_RSA + const AM_OAuth_AuthCode + const AM_OAuth_CredToken + type Config struct + Auth AuthInfo + Cfg *oauth2.Config + CfgVer1 *oauth1.Config + Ctx context.Context + RsaPEMKeyPair *crypto.KeyPair + Token *oauth2.Token + TokenVer1 *oauth1.Token + func NewConfig(auth AuthInfo) *Config + func (c *Config) AuthCodeURL() (string, *util.Result) + func (c *Config) AuthRequest(r *http.Request) + func (c *Config) CredentialToken() (*oauth2.Token, error) + func (c *Config) Exchange(code string) (*oauth2.Token, error) + type User struct + AccountID *string + DisplayName *string + ID *int64 + UUID *string + UserName *string