api_auth_impl

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2021 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorOAuthSequenceStopped = errors.New("the oauth sequence stopped")
	ErrorOAuthFailure         = errors.New("oauth failure")
	ErrorOAuthCancelled       = errors.New("auth cancelled")
)
View Source
var (
	MApiAuth = app_msg.Apply(&MsgApiAuth{}).(*MsgApiAuth)
)

Functions

func NewConsoleCache

func NewConsoleCache(c app_control.Control, auth api_auth.Console, app api_auth.App) api_auth.Console

func NewConsoleCacheOnly

func NewConsoleCacheOnly(c app_control.Control, peerName string, app api_auth.App) api_auth.Console

func NewConsoleOAuth

func NewConsoleOAuth(c app_control.Control, peerName string, app api_auth.App) api_auth.Console

func NewConsoleRedirect

func NewConsoleRedirect(c app_control.Control, peerName string, app api_auth.App) api_auth.Console

Types

type Cached

type Cached struct {
	// contains filtered or unexported fields
}

func (*Cached) Auth

func (z *Cached) Auth(scopes []string) (tc api_auth.Context, err error)

func (*Cached) PeerName

func (z *Cached) PeerName() string

func (*Cached) Purge

func (z *Cached) Purge(scope string)

type Console

type Console struct {
	// contains filtered or unexported fields
}

func (*Console) Auth

func (z *Console) Auth(scopes []string) (tc api_auth.Context, err error)

func (*Console) PeerName

func (z *Console) PeerName() string

type MsgApiAuth

type MsgApiAuth struct {
	FailedOrCancelled   app_msg.Message
	ProgressAuthSuccess app_msg.Message
	OauthSeq1           app_msg.Message
	OauthSeq2           app_msg.Message
}

type OptInFeatureRedirect

type OptInFeatureRedirect struct {
	app_feature.OptInStatus
}

type Redirect

type Redirect struct {
	// contains filtered or unexported fields
}

func (*Redirect) Auth

func (z *Redirect) Auth(scopes []string) (token api_auth.Context, err error)

func (*Redirect) PeerName

func (z *Redirect) PeerName() string

type RedirectService

type RedirectService struct {
	// contains filtered or unexported fields
}

func (*RedirectService) Result

func (z *RedirectService) Result() (done, result bool, err error)

func (*RedirectService) Token

func (z *RedirectService) Token() *oauth2.Token

func (*RedirectService) Url

func (z *RedirectService) Url(redirectUrl string) string

func (*RedirectService) Verify

func (z *RedirectService) Verify(state, code string) bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL