serviceauth

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: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Store adapter

Store is the package state variable which contains database connections

Functions

func AgentLogin

func AgentLogin(w http.ResponseWriter, r *http.Request)

func AuthHTTPAccessProxy

func AuthHTTPAccessProxy(w http.ResponseWriter, r *http.Request)

AuthHTTPAccessProxy initiates http access proxy session. Intent should be 'AUTH_HTTP_ACCESS_PROXY'

func DBLogin

func DBLogin(w http.ResponseWriter, r *http.Request)

func DestroyHttpSession

func DestroyHttpSession(w http.ResponseWriter, r *http.Request)

DestroyHttpSession ends http session and starts logout sequence

func GetHttpSession

func GetHttpSession(w http.ResponseWriter, r *http.Request)

GetHttpSession receives session recording from extension

func InitStore

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

InitStore initialises package state

func RadiusLogin

func RadiusLogin(w radius.ResponseWriter, r *radius.Request)

RadiusLogin is a handler for incoming radius auth request

Types

type NewSession

type NewSession struct {
	ExtToken  string `json:"extToken"`
	HostName  string `json:"hostName"`
	TfaMethod string `json:"tfaMethod"`
	TotpCode  string `json:"totpCode"`
}

type ServiceAgentLogin

type ServiceAgentLogin struct {
	ServiceID       string `json:"serviceID"`
	ServiceKey      string `json:"serviceKey"`
	User            string `json:"user"`
	Password        string `json:"password"`
	PublicKey       []byte `json:"publicKey"`
	TfaMethod       string `json:"tfaMethod"`
	TotpCode        string `json:"totpCode"`
	UserIP          string `json:"userIP"`
	UserWorkstation string `json:"workstation"`
	TrasaID         string `json:"trasaID"`
	SessionID       string `json:"sessionID"`
	ServiceType     string `json:"serviceType"`
	//RdpProtocol     string           `json:"rdpProto"`
	OrgID    string `json:"orgID"`
	Hostname string `json:"hostname"`
}

type Session

type Session struct {
	SessionID     string `json:"sessionID"`
	CsrfToken     string `json:"csrfToken"`
	SessionRecord bool   `json:"sessionRecord"`
}

Jump to

Keyboard shortcuts

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