Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
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")
)
Functions ¶
func HashedSecret ¶
func HashedSecret(ta *Token, salt string) (string, error)
HashedSecret generates a hashed password for an external initiator authentication
Types ¶
type Token ¶
type Token struct {
AccessKey string `json:"accessKey"`
Secret string `json:"secret"`
}
Token is used for API authentication.
func (*Token) GetID ¶
func (ta *Token) GetID() string
GetID returns the ID of this structure for jsonapi serialization.
Click to show internal directories.
Click to hide internal directories.