factor

package
v0.0.0-...-086fd50 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2015 License: GPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authenticator

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

func NewAuthenticator

func NewAuthenticator(length int) *Authenticator

func (*Authenticator) Request

func (a *Authenticator) Request(data string) (string, error)

func (*Authenticator) Type

func (a *Authenticator) Type() string

func (*Authenticator) Verify

func (a *Authenticator) Verify(data []string, input string) (bool, error)

type Factor

type Factor interface {
	Type() string
	Request(data string) (string, error)
	Verify(data []string, input string) (bool, error)
}

type YubiCloud

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

YubiCloud is an implementation of Factor to authenticate with YubiCloud

func NewYubiCloud

func NewYubiCloud(id string, key string) (*YubiCloud, error)

NewYubiCloud set ups a new Factor that supports authing using YubiCloud

func (*YubiCloud) Request

func (y *YubiCloud) Request(data string) (string, error)

Request does nothing in this driver

func (*YubiCloud) Type

func (y *YubiCloud) Type() string

Type returns factor's type

func (*YubiCloud) Verify

func (y *YubiCloud) Verify(data []string, input string) (bool, error)

Verify checks if the token is valid

Jump to

Keyboard shortcuts

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