connector

package
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: Apache-2.0 Imports: 32 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 ExpectedGroupNameCaptureGroupsWithGroupFilterForMultipleAWSInstances = 3
View Source
const ExpectedIdentityProviderArnRegexCaptureGroups = 2
View Source
const ResourceNotFoundExceptionErrorCode = "E0000007"

Variables

This section is empty.

Functions

func TestRoleResourceTypeGrant added in v0.1.14

func TestRoleResourceTypeGrant(t *testing.T)

func TestRoleResourceTypeGrants added in v0.1.14

func TestRoleResourceTypeGrants(t *testing.T)

func TestSyncRoles added in v0.1.14

func TestSyncRoles(t *testing.T)

func TestUserResourceTypeList added in v0.1.14

func TestUserResourceTypeList(t *testing.T)

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 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
	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 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 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"`
}

Jump to

Keyboard shortcuts

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