okta

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(options map[string]interface{}) (collector.Client, error)

New will initialize and return an authorized Client

Types

type Client

type Client struct {
	collector.Client
	Options map[string]interface{}
	// contains filtered or unexported fields
}

func (*Client) ClientType added in v0.5.0

func (oktaClient *Client) ClientType() collector.ClientType

func (*Client) Exit

func (oktaClient *Client) Exit() (err error)

func (*Client) GetLogs

func (oktaClient *Client) GetLogs(startTime string, endTime string, resultsChannel chan<- string) (int, error)

Get logs method with paged results logic Events are streamed into the results channel

func (*Client) Poll

func (oktaClient *Client) Poll(timestamp time.Time, resultsChannel chan<- string, pollOffset int) (count int, currentTimestamp time.Time, err error)

Collect will query the source and pass the results back through a result channel

func (*Client) Stream

func (oktaClient *Client) Stream(streamChannel chan<- string) (cancelFunc func(), err error)

type OktaActor

type OktaActor struct {
	Id          string                 `json:"id"`
	Type        string                 `json:"type"`
	AlternateId string                 `json:"alternateId"`
	DisplayName string                 `json:"displayName"`
	DetailEntry map[string]interface{} `json:"detailEntry"`
}

type OktaAuthenticationContext

type OktaAuthenticationContext struct {
	AuthenticationProvider string     `json:"authenticationProvider"`
	CredentialProvider     string     `json:"credentialProvider"`
	CredentialType         string     `json:"credentialType"`
	Issuer                 OktaIssuer `json:"issuer"`
	ExternalSessionId      string     `json:"externalSessionId"`
	Interface              string     `json:"interface"`
}

type OktaClientObj

type OktaClientObj struct {
	UserAgent           OktaUserAgent  `json:"userAgent"`
	GeographicalContext OktaGeoContext `json:"geographicalContext"`
	Zone                string         `json:"Zone"`
	IpAddress           string         `json:"ipAddress"`
	Device              string         `json:"device"`
	Id                  string         `json:"id"`
}

type OktaDebugContext

type OktaDebugContext struct {
	DebugData OktaDebugData `json:"debugData"`
}

type OktaDebugData

type OktaDebugData struct {
	RequestUri        string    `json:"requestUri"`
	OriginalPrincipal OktaActor `json:"originalPrincipal"`
}

type OktaGeoContext

type OktaGeoContext struct {
	Geolocation OktaGeolocation `json:"geolocation"`
	City        string          `json:"city"`
	State       string          `json:"state"`
	Country     string          `json:"country"`
	PostalCode  string          `json:"postalCode"`
}

type OktaGeolocation

type OktaGeolocation struct {
	Lat json.Number `json:"lat"`
	Lon json.Number `json:"lon"`
}

type OktaIpChain

type OktaIpChain struct {
	Ip                  string         `json:"ip"`
	GeographicalContext OktaGeoContext `json:"geographicalContext"`
	Version             string         `json:"version"`
	Source              string         `json:"source"`
}

type OktaIssuer

type OktaIssuer struct {
	Id   string `json:"id"`
	Type string `json:"type"`
}

type OktaOutcome

type OktaOutcome struct {
	Result string `json:"result"`
	Reason string `json:"reason"`
}

type OktaRequest

type OktaRequest struct {
	IpChain []OktaIpChain `json:"ipChain"`
}

type OktaResponse

type OktaResponse struct {
	Uuid                  string                    `json:"uuid"`
	Published             string                    `json:"published"`
	EventType             string                    `json:"eventType"`
	Version               string                    `json:"version"`
	Severity              string                    `json:"severity"`
	LegacyEventType       string                    `json:"legacyEventType"`
	DisplayMessage        string                    `json:"displayMessage"`
	Actor                 OktaActor                 `json:"actor"`
	Client                OktaClientObj             `json:"client"`
	Outcome               OktaOutcome               `json:"outcome"`
	Target                []OktaActor               `json:"target"`
	Transaction           OktaTransaction           `json:"transaction"`
	DebugContext          OktaDebugContext          `json:"debugContext"`
	AuthenticationContext OktaAuthenticationContext `json:"authenticationContext"`
	SecurityContext       OktaSecurityContext       `json:"securityContext"`
	Request               OktaRequest               `json:"request"`
}

type OktaSecurityContext

type OktaSecurityContext struct {
	AsNumber json.Number `json:"asNumber"`
	AsOrg    string      `json:"asOrg"`
	Isp      string      `json:"isp"`
	Domain   string      `json:"domain"`
	IsProxy  bool        `json:"isProxy"`
}

type OktaTransaction

type OktaTransaction struct {
	Id     string                 `json:"id"`
	Type   string                 `json:"type"`
	Detail map[string]interface{} `json:"detail"`
}

type OktaUserAgent

type OktaUserAgent struct {
	RawUserAgent string `json:"rawUserAgent"`
	Os           string `json:"os"`
	Browser      string `json:"browser"`
}

Jump to

Keyboard shortcuts

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