mirror of https://github.com/stashapp/stash.git
18 lines
389 B
Go
18 lines
389 B
Go
|
package session
|
||
|
|
||
|
type ExternalAccessConfig interface {
|
||
|
HasCredentials() bool
|
||
|
GetDangerousAllowPublicWithoutAuth() bool
|
||
|
GetSecurityTripwireAccessedFromPublicInternet() string
|
||
|
IsNewSystem() bool
|
||
|
}
|
||
|
|
||
|
type SessionConfig interface {
|
||
|
GetUsername() string
|
||
|
GetAPIKey() string
|
||
|
|
||
|
GetSessionStoreKey() []byte
|
||
|
GetMaxSessionAge() int
|
||
|
ValidateCredentials(username string, password string) bool
|
||
|
}
|