Documentation ¶
Index ¶
- func WithRequestTimeout(seconds int) auth1WrapperOption
- func WithVerbose() auth1WrapperOption
- type Auth1Wrapper
- func (wrapper *Auth1Wrapper) AddSiteUser(siteKey, userId string, passwd []byte, memo string, noauth bool) (string, error)
- func (wrapper *Auth1Wrapper) Close() error
- func (wrapper *Auth1Wrapper) GetSiteJwtSecret() ([]byte, error)
- func (wrapper *Auth1Wrapper) GetSiteKey() string
- func (wrapper *Auth1Wrapper) GetTenantKey() string
- func (wrapper *Auth1Wrapper) GetUserInfo(userKey string) (*pb.UserInfoReply, error)
- func (wrapper *Auth1Wrapper) LoginNoAuth(uid string) (*LoginResult, error)
- func (wrapper *Auth1Wrapper) LoginOneTap(token string) (*LoginResult, error)
- func (wrapper *Auth1Wrapper) LoginUidpw(uid string, pw []byte) (*LoginResult, error)
- func (wrapper *Auth1Wrapper) Logout(rtk string) error
- func (wrapper *Auth1Wrapper) RefreshAuth(rtk string) (*LoginResult, error)
- func (wrapper *Auth1Wrapper) SetApiKey(apikey, secret string)
- type LoginResult
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) AddSiteUser ¶ added in v0.0.4
func (*Auth1Wrapper) Close ¶
func (wrapper *Auth1Wrapper) Close() error
func (*Auth1Wrapper) GetSiteJwtSecret ¶
func (wrapper *Auth1Wrapper) GetSiteJwtSecret() ([]byte, error)
func (*Auth1Wrapper) GetSiteKey ¶ added in v0.0.4
func (wrapper *Auth1Wrapper) GetSiteKey() string
func (*Auth1Wrapper) GetTenantKey ¶ added in v0.0.4
func (wrapper *Auth1Wrapper) GetTenantKey() string
func (*Auth1Wrapper) GetUserInfo ¶ added in v0.0.3
func (wrapper *Auth1Wrapper) GetUserInfo(userKey string) (*pb.UserInfoReply, error)
func (*Auth1Wrapper) LoginNoAuth ¶ added in v0.0.6
func (wrapper *Auth1Wrapper) LoginNoAuth(uid string) (*LoginResult, error)
func (*Auth1Wrapper) LoginOneTap ¶ added in v0.0.5
func (wrapper *Auth1Wrapper) LoginOneTap(token string) (*LoginResult, 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
Click to show internal directories.
Click to hide internal directories.