connector

package
v0.1.26 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const (
	V1MembershipEntitlementIDTemplate = "membership:%s"
	V1GrantIDTemplate                 = "grant:%s:%s"
)
View Source
const (
	ContentType = "application/json"
	NF          = -1
)
View Source
const AccessDeniedErrorCode = "E0000006"
View Source
const ExpectedGroupNameCaptureGroupsWithGroupFilterForMultipleAWSInstances = 3
View Source
const ExpectedIdentityProviderArnRegexCaptureGroups = 2
View Source
const ResourceNotFoundExceptionErrorCode = "E0000007"

TODO: use isNotFoundError() since E0000008 is also a not found error

Variables

This section is empty.

Functions

func V1MembershipEntitlementID added in v0.0.6

func V1MembershipEntitlementID(resourceID string) string

Types

type AWSRoles added in v0.1.13

type AWSRoles struct {
	AWSEnvironmentEnum []string `json:"AWSEnvironmentEnum,omitempty"`
	SamlIamRole        []string `json:"SamlIamRole,omitempty"`
	IamRole            []string `json:"IamRole,omitempty"`
}

type Binding added in v0.1.16

type Binding struct {
	Href string `json:"href,omitempty"`
}

type Config added in v0.1.5

type Config struct {
	Domain              string
	ApiToken            string
	OktaClientId        string
	OktaPrivateKey      string
	OktaPrivateKeyId    string
	SyncInactiveApps    bool
	OktaProvisioning    bool
	Ciam                bool
	CiamEmailDomains    []string
	Cache               bool
	CacheTTI            int32
	CacheTTL            int32
	SyncCustomRoles     bool
	SkipSecondaryEmails bool
	AWSMode             bool
	AWSOktaAppId        string
}

type CustomRoles added in v0.1.14

type CustomRoles struct {
	Roles []*okta.Role `json:"roles,omitempty"`
	Links interface{}  `json:"_links,omitempty"`
}
type Link struct {
	Next Next `json:"next,omitempty"`
}
type Links struct {
	Members Members `json:"members,omitempty"`
	Self    Self    `json:"self,omitempty"`
}

type LinksSelf added in v0.1.16

type LinksSelf struct {
	Self Self `json:"self,omitempty"`
}

type LinksSelfBinding added in v0.1.16

type LinksSelfBinding struct {
	Self    Self    `json:"self,omitempty"`
	Binding Binding `json:"binding,omitempty"`
}

type Members added in v0.1.16

type Members struct {
	Href string `json:"href,omitempty"`
}

type MembersDetails added in v0.1.16

type MembersDetails struct {
	ID          string    `json:"id,omitempty"`
	Created     time.Time `json:"created,omitempty"`
	LastUpdated time.Time `json:"lastUpdated,omitempty"`
	Links       LinksSelf `json:"_links,omitempty"`
}

type Next added in v0.1.14

type Next struct {
	Href string `json:"href,omitempty"`
}

type Okta

type Okta struct {
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, cfg *Config) (*Okta, error)

func (*Okta) Asset

func (c *Okta) Asset(ctx context.Context, asset *v2.AssetRef) (string, io.ReadCloser, error)

func (*Okta) Metadata

func (c *Okta) Metadata(ctx context.Context) (*v2.ConnectorMetadata, error)

func (*Okta) ResourceSyncers

func (o *Okta) ResourceSyncers(ctx context.Context) []connectorbuilder.ResourceSyncer

func (*Okta) Validate

func (c *Okta) Validate(ctx context.Context) (annotations.Annotations, error)

type OktaAppGroupWrapper added in v0.1.13

type OktaAppGroupWrapper struct {
	// contains filtered or unexported fields
}

type ResourceSet added in v0.1.16

type ResourceSet struct {
	Href string `json:"href,omitempty"`
}

type ResourceSets added in v0.1.14

type ResourceSets struct {
	ID          string      `json:"id,omitempty"`
	Label       string      `json:"label,omitempty"`
	Description string      `json:"description,omitempty"`
	Created     time.Time   `json:"created,omitempty"`
	LastUpdated time.Time   `json:"lastUpdated,omitempty"`
	Links       interface{} `json:"_links,omitempty"`
}

type ResourceSetsAPIData added in v0.1.14

type ResourceSetsAPIData struct {
	ResourceSets []ResourceSets `json:"resource-sets,omitempty"`
	Links        Link           `json:"_links,omitempty"`
}

type ResourceSetsBindingsAPIData added in v0.1.16

type ResourceSetsBindingsAPIData struct {
	Roles []Role `json:"roles,omitempty"`
	Links _Links `json:"_links"`
}

type Role added in v0.1.16

type Role struct {
	ID    string `json:"id,omitempty"`
	Links Links  `json:"_links,omitempty"`
}

type RoleAssignment added in v0.1.20

type RoleAssignment struct {
	Id    string      `json:"id,omitempty"`
	Orn   string      `json:"orn,omitempty"`
	Links interface{} `json:"_links,omitempty"`
}

type RoleAssignments added in v0.1.20

type RoleAssignments struct {
	RoleAssignments []*RoleAssignment `json:"value,omitempty"`
	Links           interface{}       `json:"_links,omitempty"`
}

type Roles added in v0.1.16

type Roles struct {
	Links          interface{} `json:"_links,omitempty"`
	AssignmentType string      `json:"assignmentType,omitempty"`
	Created        *time.Time  `json:"created,omitempty"`
	Description    string      `json:"description,omitempty"`
	Id             string      `json:"id,omitempty"`
	Label          string      `json:"label,omitempty"`
	LastUpdated    *time.Time  `json:"lastUpdated,omitempty"`
	Status         string      `json:"status,omitempty"`
	Type           string      `json:"type,omitempty"`
	ResourceSet    string      `json:"resource-set,omitempty"`
	Role           string      `json:"role,omitempty"`
}

Id is the role assignment id Role is the role id.

type Self added in v0.1.16

type Self struct {
	Href string `json:"href,omitempty"`
}

Jump to

Keyboard shortcuts

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