vip

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2017 License: Apache-2.0 Imports: 13 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
	VipServicesURL     string
	VipUserServicesURL string
	RootCAs            *x509.CertPool
}

func NewClient

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

func (*Client) GetActiveTokens

func (client *Client) GetActiveTokens(userID string) ([]string, 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)

The response string is only to have some sort of testing

Jump to

Keyboard shortcuts

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