vip

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2019 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Cert                            tls.Certificate
	VipUserServicesURL              string
	VipUserServiceAuthenticationURL string
	RootCAs                         *x509.CertPool
	VipPushMessageText              string //what is shown on the shown on the alarm
	VipPushDisplayMessageText       string // what is shown after
	VipPushDisplayMessageProfile    string // The url?
	Debug                           bool
	RequireAppApproval              bool
}

func NewClient

func NewClient(certPEMBlock, keyPEMBlock []byte) (client Client, err error)

func (*Client) GetActiveTokens

func (client *Client) GetActiveTokens(userID string) ([]string, error)

func (*Client) StartUserVIPPush added in v1.4.3

func (client *Client) StartUserVIPPush(userID string) (transactionID string, err error)

func (*Client) ValidateUserOTP

func (client *Client) ValidateUserOTP(userID string, OTPValue int) (bool, error)

func (*Client) VerifySingleToken

func (client *Client) VerifySingleToken(tokenID string, tokenValue int) (bool, error)

func (*Client) VipPushHasBeenApproved added in v1.4.3

func (client *Client) VipPushHasBeenApproved(transactionID string) (bool, error)

type PollResponseDeviceInfo added in v1.4.3

type PollResponseDeviceInfo struct {
	Key   string `xml:"Key"`
	Value string `xml:"Value"`
}

Jump to

Keyboard shortcuts

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