Documentation
¶
Overview ¶
Package keys derives purpose-specific keys from server.secret so that a session key can never be used to forge an API token or an upload URL.
Index ¶
Constants ¶
View Source
const ( Session = "backyard/session/v1" OAuthState = "backyard/oauth-state/v1" APIToken = "backyard/api-token/v1" Deploy = "backyard/deploy/v1" Upload = "backyard/upload/v1" Anon = "backyard/anon/v1" // CLIConfirm signs the confirmation form of a cross-site CLI login // (/__backyard/auth/cli). The value never leaves one deployment, so the // Cloudflare edition need not derive it identically. CLIConfirm = "backyard/cli-confirm/v1" )
Labels for the derived keys. Every component must use its own label.
Variables ¶
View Source
var ErrBadSignature = errors.New("keys: bad signature")
ErrBadSignature is returned by Verify for malformed or forged values.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.