chainlink: github.com/smartcontractkit/chainlink/core/auth Index | Files

package auth

import "github.com/smartcontractkit/chainlink/core/auth"

Index

Package Files

auth.go

Variables

var (
    // ErrorAuthFailed is a generic authentication failed - but not because of
    // some system failure on our behalf (i.e. HTTP 5xx), more detail is not
    // given
    ErrorAuthFailed = errors.New("Authentication failed")
)

func HashedSecret Uses

func HashedSecret(ta *Token, salt string) (string, error)

HashedSecret generates a hashed password for an external initiator authentication

type Token Uses

type Token struct {
    AccessKey string `json:"accessKey"`
    Secret    string `json:"secret"`
}

Token is used for API authentication.

func NewToken Uses

func NewToken() *Token

NewToken returns a new Authentication Token.

func (*Token) GetID Uses

func (ta *Token) GetID() string

GetID returns the ID of this structure for jsonapi serialization.

func (*Token) GetName Uses

func (ta *Token) GetName() string

GetName returns the pluralized "type" of this structure for jsonapi serialization.

func (*Token) SetID Uses

func (ta *Token) SetID(id string) error

SetID returns the ID of this structure for jsonapi serialization.

Package auth imports 5 packages (graph). Updated 2020-01-08. Refresh now. Tools for package owners.

The go get command cannot install this package because of the following issues: