Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AgentScopes = []Scope{ScopeAgentRead, ScopeAgentWrite}
AgentScopes are minted for automated clients.
View Source
var ErrForbidden = errors.New("forbidden")
ErrForbidden is returned when credentials lack required scope.
ErrUnauthorized is returned for invalid or expired credentials.
View Source
var HumanScopes = []Scope{ScopeHumanView, ScopeHumanControl}
HumanScopes include observe and takeover.
View Source
var SessionScopes = []Scope{ ScopeAgentRead, ScopeAgentWrite, ScopeHumanView, ScopeHumanControl, }
SessionScopes grants full access to a session (returned at create time).
Functions ¶
Types ¶
type BootstrapSecret ¶
type BootstrapSecret string
BootstrapSecret is a server-wide secret for session creation.
func NewBootstrapSecret ¶
func NewBootstrapSecret() (BootstrapSecret, error)
NewBootstrapSecret generates a random bootstrap secret.
func (BootstrapSecret) ConstantTimeEqual ¶
func (b BootstrapSecret) ConstantTimeEqual(other string) bool
ConstantTimeEqual compares bootstrap secrets safely.
Click to show internal directories.
Click to hide internal directories.