Versions in this module Expand all Collapse all v0 v0.6.0 Nov 27, 2021 Changes in this version + var ErrorOAuthCancelled = errors.New("auth cancelled") + var ErrorOAuthFailure = errors.New("oauth failure") + var ErrorOAuthSequenceStopped = errors.New("the oauth sequence stopped") + var MApiAuth = app_msg.Apply(&MsgApiAuth{}).(*MsgApiAuth) + func NewConsoleCache(c app_control.Control, auth api_auth.Console, app api_auth.App) api_auth.Console + func NewConsoleCacheOnly(c app_control.Control, peerName string, app api_auth.App) api_auth.Console + func NewConsoleOAuth(c app_control.Control, peerName string, app api_auth.App) api_auth.Console + func NewConsoleRedirect(c app_control.Control, peerName string, app api_auth.App) api_auth.Console + type Cached struct + func (z *Cached) Auth(scopes []string) (tc api_auth.Context, err error) + func (z *Cached) PeerName() string + func (z *Cached) Purge(scope string) + type Console struct + func (z *Console) Auth(scopes []string) (tc api_auth.Context, err error) + func (z *Console) PeerName() string + type MsgApiAuth struct + FailedOrCancelled app_msg.Message + OauthSeq1 app_msg.Message + OauthSeq2 app_msg.Message + ProgressAuthSuccess app_msg.Message + type OptInFeatureRedirect struct + type Redirect struct + func (z *Redirect) Auth(scopes []string) (token api_auth.Context, err error) + func (z *Redirect) PeerName() string + type RedirectService struct + func (z *RedirectService) Result() (done, result bool, err error) + func (z *RedirectService) Token() *oauth2.Token + func (z *RedirectService) Url(redirectUrl string) string + func (z *RedirectService) Verify(state, code string) bool