okta

package
v0.0.0-...-be84041 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MPL-2.0 Imports: 62 Imported by: 2

Documentation

Overview

Package okta terraform configuration for an okta site

Index

Constants

View Source
const (
	OktaTerraformProviderVersion   = "4.8.1"
	OktaTerraformProviderUserAgent = "okta-terraform/" + OktaTerraformProviderVersion
)

Variables

This section is empty.

Functions

func NewAppAccessPolicyAssignmentResource

func NewAppAccessPolicyAssignmentResource() resource.Resource

func NewAppOAuthRoleAssignmentResource

func NewAppOAuthRoleAssignmentResource() resource.Resource

func NewBrandResource

func NewBrandResource() resource.Resource

func NewCustomizedSigninResource

func NewCustomizedSigninResource() resource.Resource

func NewDefaultSigninPageDataSource

func NewDefaultSigninPageDataSource() datasource.DataSource

func NewFrameworkProvider

func NewFrameworkProvider(version string) provider.Provider

NewFrameworkProvider is a helper function to simplify provider server and testing implementation.

func NewLogStreamDataSource

func NewLogStreamDataSource() datasource.DataSource

func NewLogStreamResource

func NewLogStreamResource() resource.Resource

func NewOrgMetadataDataSource

func NewOrgMetadataDataSource() datasource.DataSource

func NewPolicyDeviceAssuranceAndroidResource

func NewPolicyDeviceAssuranceAndroidResource() resource.Resource

func NewPolicyDeviceAssuranceChromeOSResource

func NewPolicyDeviceAssuranceChromeOSResource() resource.Resource

func NewPolicyDeviceAssuranceIOSResource

func NewPolicyDeviceAssuranceIOSResource() resource.Resource

func NewPolicyDeviceAssuranceMacOSResource

func NewPolicyDeviceAssuranceMacOSResource() resource.Resource

func NewPolicyDeviceAssuranceWindowsResource

func NewPolicyDeviceAssuranceWindowsResource() resource.Resource

func NewPreviewSigninResource

func NewPreviewSigninResource() resource.Resource

func Provider

func Provider() *schema.Provider

Provider establishes a client connection to an okta site determined by its schema string values

Types

type Config

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

Config contains our provider schema values and Okta clients

func NewConfig

func NewConfig(d *schema.ResourceData) *Config

func (*Config) IsClassicOrg

func (c *Config) IsClassicOrg(ctx context.Context) bool

IsClassicOrg returns true if the org is a classic org. Does lazy evaluation of the well known endpoint.

func (*Config) IsOAuth20Auth

func (c *Config) IsOAuth20Auth() bool

func (*Config) SetTimeOperations

func (c *Config) SetTimeOperations(op TimeOperations)

type FrameworkProvider

type FrameworkProvider struct {
	Config
	Version string
}

func (*FrameworkProvider) Configure

func (*FrameworkProvider) DataSources

func (p *FrameworkProvider) DataSources(_ context.Context) []func() datasource.DataSource

DataSources defines the data sources implemented in the provider.

func (*FrameworkProvider) Metadata

Metadata returns the provider type name.

func (*FrameworkProvider) Resources

func (p *FrameworkProvider) Resources(_ context.Context) []func() resource.Resource

Resources defines the resources implemented in the provider.

func (*FrameworkProvider) Schema

Schema defines the provider-level schema for configuration data.

type FrameworkProviderData

type FrameworkProviderData struct {
	OrgName        types.String `tfsdk:"org_name"`
	AccessToken    types.String `tfsdk:"access_token"`
	APIToken       types.String `tfsdk:"api_token"`
	ClientID       types.String `tfsdk:"client_id"`
	Scopes         types.Set    `tfsdk:"scopes"`
	PrivateKey     types.String `tfsdk:"private_key"`
	PrivateKeyID   types.String `tfsdk:"private_key_id"`
	BaseURL        types.String `tfsdk:"base_url"`
	HTTPProxy      types.String `tfsdk:"http_proxy"`
	Backoff        types.Bool   `tfsdk:"backoff"`
	MinWaitSeconds types.Int64  `tfsdk:"min_wait_seconds"`
	MaxWaitSeconds types.Int64  `tfsdk:"max_wait_seconds"`
	MaxRetries     types.Int64  `tfsdk:"max_retries"`
	Parallelism    types.Int64  `tfsdk:"parallelism"`
	LogLevel       types.Int64  `tfsdk:"log_level"`
	MaxAPICapacity types.Int64  `tfsdk:"max_api_capacity"`
	RequestTimeout types.Int64  `tfsdk:"request_timeout"`
}

type OAuthRoleAssignmentResourceModel

type OAuthRoleAssignmentResourceModel struct {
	ID          types.String `tfsdk:"id"`
	ClientID    types.String `tfsdk:"client_id"`
	Type        types.String `tfsdk:"type"`
	ResourceSet types.String `tfsdk:"resource_set"`
	Role        types.String `tfsdk:"role"`
	Status      types.String `tfsdk:"status"`
	Label       types.String `tfsdk:"label"`
}

type OrgMetadataDataSource

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

func (*OrgMetadataDataSource) Configure

func (*OrgMetadataDataSource) Metadata

func (*OrgMetadataDataSource) Read

func (*OrgMetadataDataSource) Schema

type OrgMetadataDataSourceModel

type OrgMetadataDataSourceModel struct {
	ID       types.String `tfsdk:"id"`
	Pipeline types.String `tfsdk:"pipeline"`
	Settings types.Object `tfsdk:"settings"`
	Domains  types.Object `tfsdk:"domains"`
}

type OrgMetadataDomainsModel

type OrgMetadataDomainsModel struct {
	Organization types.String `tfsdk:"organization"`
	Alternate    types.String `tfsdk:"alternate"`
}

type OrgMetadataSettingsModel

type OrgMetadataSettingsModel struct {
	AnalyticsCollectionEnabled types.Bool `tfsdk:"analytics_collection_enabled"`
	BugReportingEnabled        types.Bool `tfsdk:"bug_reporting_enabled"`
	OmEnabled                  types.Bool `tfsdk:"om_enabled"`
}

type ProductionTimeOperations

type ProductionTimeOperations struct{}

func (*ProductionTimeOperations) DoNotRetry

func (o *ProductionTimeOperations) DoNotRetry(err error) bool

DoNotRetry always retry in production

func (*ProductionTimeOperations) Sleep

Sleep facade to actual time.Sleep in production

type TestTimeOperations

type TestTimeOperations struct{}

func (*TestTimeOperations) DoNotRetry

func (o *TestTimeOperations) DoNotRetry(err error) bool

DoNotRetry tests do not retry when there is an error and VCR is recording

func (*TestTimeOperations) Sleep

func (o *TestTimeOperations) Sleep(d time.Duration)

Sleep no sleeping when test is in VCR play mode

type TimeOperations

type TimeOperations interface {
	DoNotRetry(error) bool
	Sleep(time.Duration)
}

func NewProductionTimeOperations

func NewProductionTimeOperations() TimeOperations

NewProductionTimeOperations new production time operations

func NewTestTimeOperations

func NewTestTimeOperations() TimeOperations

NewTestTimeOperations new test time operations

Source Files

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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