systemauth

package
v0.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 11, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const SSHTTL = 60 * time.Minute

Variables

This section is empty.

Functions

func CheckBiometrics

func CheckBiometrics(callingContext *sockets.CallingContext, approvalType biometrics.Approval) bool

no session

func GetPermission

func GetPermission(sessionType SessionType, ctx sockets.CallingContext, config *config.Config) (bool, error)

with session

func GetSSHSession

func GetSSHSession(ctx sockets.CallingContext) bool

func VerifyPinSession

func VerifyPinSession(ctx sockets.CallingContext) bool

func WipeSessions

func WipeSessions()

Types

type Session

type Session struct {
	Pid            int
	ParentPid      int
	GrandParentPid int
	Expires        time.Time
	// contains filtered or unexported fields
}

func CreatePinSession

func CreatePinSession(ctx sockets.CallingContext, ttl time.Duration) Session

func CreateSSHSession

func CreateSSHSession(ctx sockets.CallingContext) Session

type SessionStore

type SessionStore struct {
	Store []Session
}

func (*SessionStore) CreateSession

func (s *SessionStore) CreateSession(pid int, parentpid int, grandparentpid int, sessionType SessionType, ttl time.Duration) Session

type SessionType

type SessionType string
const (
	AccessVault SessionType = "com.quexten.goldwarden.accessvault"
	SSHKey      SessionType = "com.quexten.goldwarden.usesshkey"
	Pin         SessionType = "com.quexten.goldwarden.pin"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL