auth1lib

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: MIT Imports: 13 Imported by: 0

README

auth1lib-go

Auth1 Client Library for Go

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithRequestTimeout

func WithRequestTimeout(seconds int) auth1WrapperOption

func WithVerbose

func WithVerbose() auth1WrapperOption

Types

type Auth1Wrapper

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

func NewClient

func NewClient(auth1uri string, opts ...auth1WrapperOption) (*Auth1Wrapper, error)

func (*Auth1Wrapper) Close

func (wrapper *Auth1Wrapper) Close() error

func (*Auth1Wrapper) GetSiteJwtSecret

func (wrapper *Auth1Wrapper) GetSiteJwtSecret() ([]byte, error)

func (*Auth1Wrapper) LoginUidpw added in v0.0.2

func (wrapper *Auth1Wrapper) LoginUidpw(uid string, pw []byte) (*LoginResult, error)

func (*Auth1Wrapper) Logout added in v0.0.2

func (wrapper *Auth1Wrapper) Logout(rtk string) error

func (*Auth1Wrapper) RefreshAuth added in v0.0.2

func (wrapper *Auth1Wrapper) RefreshAuth(rtk string) (*LoginResult, error)

func (*Auth1Wrapper) SetApiKey

func (wrapper *Auth1Wrapper) SetApiKey(apikey, secret string)

type LoginResult added in v0.0.2

type LoginResult struct {
	AccessToken  string
	RefreshToken string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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