auth

package
v0.0.0-...-6e0bb2c Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authenticator

type Authenticator struct {
	EmailAddress       string
	Password           string
	Proxy              string
	Session            tls_client.HttpClient
	UserAgent          string
	State              string
	URL                string
	Verifier_code      string
	Verifier_challenge string
	AuthResult         interface{}
	PUID               string
	IsPlatform         bool
}

func NewAuthenticator

func NewAuthenticator(emailAddress, password, proxy string) *Authenticator

func (*Authenticator) Begin

func (auth *Authenticator) Begin() *Error

func (*Authenticator) GetAccessToken

func (auth *Authenticator) GetAccessToken() string

func (*Authenticator) GetAuthResult

func (auth *Authenticator) GetAuthResult() interface{}

func (*Authenticator) GetPUID

func (auth *Authenticator) GetPUID() (string, *Error)

func (*Authenticator) URLEncode

func (auth *Authenticator) URLEncode(str string) string

type Error

type Error struct {
	Location   string
	StatusCode int
	Details    string
	Error      error
}

func NewError

func NewError(location string, statusCode int, details string, err error) *Error

Jump to

Keyboard shortcuts

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