dbx_auth_attr

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorUnableToRetrieveResponse = errors.New("unable to retrieve json response")
	ErrorNoVerification           = errors.New("no verification")
	ErrorUnexpectedResponseFormat = errors.New("unexpected response format")
)
View Source
var (
	MAttr = app_msg.Apply(&MsgAttr{}).(*MsgAttr)
)

Functions

func NewConsole

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

func NewConsoleAttr

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

func VerifyToken

func VerifyToken(name string, ctx api_auth.Context, ctl app_control.Control, app api_auth.App) (actx api_auth.Context, err error)

Returns description of the account

Types

type Attr

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

func (*Attr) Auth

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

func (*Attr) PeerName

func (z *Attr) PeerName() string

type MsgAttr

type MsgAttr struct {
	ErrorVerifyFailed app_msg.Message
	AttrTeamLicenses  app_msg.Message
}

Jump to

Keyboard shortcuts

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