stash/pkg/session/config.go
2026-02-04 14:56:49 +11:00

21 lines
401 B
Go

package session
import "context"
type ExternalAccessConfig interface {
GetDangerousAllowPublicWithoutAuth() bool
GetSecurityTripwireAccessedFromPublicInternet() string
IsNewSystem() bool
}
type CredentialStore interface {
LoginRequired(ctx context.Context) bool
}
type SessionConfig interface {
GetUsername() string
GetAPIKey() string
GetSessionStoreKey() []byte
GetMaxSessionAge() int
}