accesscontrol

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2020 License: MPL-2.0, MPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ACStore store

TODO use interface

Functions

func CheckDevicePolicy

func CheckDevicePolicy(policy models.DevicePolicy, accessDeviceID, tfaDeviceID, orgID string) (consts.FailedReason, bool, error)

CheckDevicePolicy checks if device hygiene of user is according to device policy

func CheckTrasaUAC

func CheckTrasaUAC(timezone, clientip string, policy *models.Policy) (bool, consts.FailedReason)

TrasaUAC or User access control is handled when assigning user to application. User access control handles users timing for access, users workstation for access and user IP for access. Access can be assigned for limited time per day, limited day per week or limited access with expiry date.

type TrasaUAC struct {
	Days        []string
	time        []int
	IP          string
	Workstation string
	ExpiryTimer string
}

func InitStore

func InitStore(state *global.State, checkPolicyFunc models.CheckPolicyFunc)

InitStore initialises package state

func TrasaUAC

func TrasaUAC(params *models.ConnectionParams, policy *models.Policy, adHocSwitch bool) (bool, consts.FailedReason)

TrasaUAC validates policy for user access

Types

This section is empty.

Jump to

Keyboard shortcuts

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