pingid

package module
v0.0.0-...-abcab0e Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2017 License: MIT Imports: 12 Imported by: 0

README

go-pingid

A client for PingID Authentication API.

Install

go get -u github.com/okzk/go-pingid

How to use

see sample directory

License

MIT

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthenticateResponse

type AuthenticateResponse struct {
	ClientData  string `json:"clientData"`
	ErrorID     int    `json:"errorId"`
	ErrorMsg    string `json:"errorMsg"`
	SessionID   string `json:"sessionId"`
	UniqueMsgID string `json:"uniqueMsgId"`
}

func (*AuthenticateResponse) Success

func (a *AuthenticateResponse) Success() bool

type PingID

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

func NewPingIDFromFile

func NewPingIDFromFile(file string) (*PingID, error)

func NewPingIDFromString

func NewPingIDFromString(str string) (*PingID, error)

func (*PingID) AuthenticateOffline

func (p *PingID) AuthenticateOffline(sessionID, userName, otp, clientData string) (*AuthenticateResponse, error)

func (*PingID) AuthenticateOnline

func (p *PingID) AuthenticateOnline(userName, clientData string) (*AuthenticateResponse, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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