Documentation
¶
Overview ¶
Package fs implements a filesystem-based auth.Authenticator.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Credentials ¶
type Credentials struct { FilePath []string `json:"filepath"` Passphrase string `json:"passphrase"` }
Credentials is the authentication JSON structure used in Folder.Authenticate
type Folder ¶
type Folder string
Folder is an implementation of auth.Authenticator that serves private keys from a folder path.
func (Folder) Authenticate ¶
func (f Folder) Authenticate(credentials json.RawMessage) (json.RawMessage, error)
Authenticate parses credentials as Credentials and attempts to authenticate them. It follows the rules specified in auth.Authenticator.
func (Folder) ExchangeToken ¶
ExchangeToken exchanges a previously issued Token for an auth.Key. It follows the rules specified in auth.Authenticator.
func (Folder) RenewToken ¶
func (f Folder) RenewToken(oldToken json.RawMessage) (json.RawMessage, error)
Click to show internal directories.
Click to hide internal directories.