auth

package
v0.0.0-...-75e7723 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: MIT Imports: 10 Imported by: 6 modules, 5 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthResult

type AuthResult struct {
	AccessToken string `json:"access_token"`
	PUID        string `json:"puid"`
}

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         AuthResult
}

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() AuthResult

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