mirror of
https://github.com/stashapp/stash.git
synced 2026-02-08 08:21:32 +01:00
18 lines
375 B
Go
18 lines
375 B
Go
package session
|
|
|
|
import "context"
|
|
|
|
type ExternalAccessConfig interface {
|
|
HasCredentials(ctx context.Context) (bool, error)
|
|
GetDangerousAllowPublicWithoutAuth() bool
|
|
GetSecurityTripwireAccessedFromPublicInternet() string
|
|
IsNewSystem() bool
|
|
}
|
|
|
|
type SessionConfig interface {
|
|
GetUsername() string
|
|
GetAPIKey() string
|
|
|
|
GetSessionStoreKey() []byte
|
|
GetMaxSessionAge() int
|
|
}
|