authentication

package
v4.2.7 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TkPath     string = "/auth/oauth2/v2/token"
	RevokePath string = "/auth/oauth2/revoke"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Authenticator

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

func NewAuthenticator

func NewAuthenticator(subdomain string) *Authenticator

func (*Authenticator) GenerateToken

func (a *Authenticator) GenerateToken() error

func (*Authenticator) GetToken

func (a *Authenticator) GetToken() (string, error)

func (*Authenticator) RevokeToken

func (a *Authenticator) RevokeToken(token *string) error

type AuthenticatorAPI added in v4.1.3

type AuthenticatorAPI interface {
	GenerateToken() error
	RevokeToken(token *string) error
	GetToken() (string, error)
}

Jump to

Keyboard shortcuts

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