mfa

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: MPL-2.0 Imports: 48 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MFADevicePolicyAuthenticationTFObjectTypes = map[string]attr.Type{
		"device_selection": types.StringType,
	}

	MFADevicePolicyOfflineDeviceTFObjectTypes = map[string]attr.Type{
		"enabled":                        types.BoolType,
		"otp":                            types.ObjectType{AttrTypes: MFADevicePolicyOfflineDeviceOtpTFObjectTypes},
		"pairing_disabled":               types.BoolType,
		"prompt_for_nickname_on_pairing": types.BoolType,
	}

	MFADevicePolicyOfflineDeviceOtpTFObjectTypes = map[string]attr.Type{
		"failure":    types.ObjectType{AttrTypes: MFADevicePolicyFailureTFObjectTypes},
		"lifetime":   types.ObjectType{AttrTypes: MFADevicePolicyTimePeriodTFObjectTypes},
		"otp_length": types.Int32Type,
	}

	MFADevicePolicyFailureTFObjectTypes = map[string]attr.Type{
		"cool_down": types.ObjectType{AttrTypes: MFADevicePolicyTimePeriodTFObjectTypes},
		"count":     types.Int32Type,
	}

	MFADevicePolicyTimePeriodTFObjectTypes = map[string]attr.Type{
		"duration":  types.Int32Type,
		"time_unit": types.StringType,
	}

	MFADevicePolicyMobileTFObjectTypes = map[string]attr.Type{
		"applications":                   types.MapType{ElemType: types.ObjectType{AttrTypes: MFADevicePolicyMobileApplicationTFObjectTypes}},
		"enabled":                        types.BoolType,
		"otp":                            types.ObjectType{AttrTypes: MFADevicePolicyMobileOtpTFObjectTypes},
		"prompt_for_nickname_on_pairing": types.BoolType,
	}

	MFADevicePolicyMobileApplicationTFObjectTypes = map[string]attr.Type{
		"auto_enrollment":      types.ObjectType{AttrTypes: MFADevicePolicyMobileApplicationAutoEnrolmentTFObjectTypes},
		"device_authorization": types.ObjectType{AttrTypes: MFADevicePolicyMobileApplicationDeviceAuthorizationTFObjectTypes},
		"integrity_detection":  types.StringType,
		"otp":                  types.ObjectType{AttrTypes: MFADevicePolicyMobileApplicationOtpTFObjectTypes},
		"pairing_disabled":     types.BoolType,
		"pairing_key_lifetime": types.ObjectType{AttrTypes: MFADevicePolicyTimePeriodTFObjectTypes},
		"push":                 types.ObjectType{AttrTypes: MFADevicePolicyMobileApplicationPushTFObjectTypes},
		"push_limit":           types.ObjectType{AttrTypes: MFADevicePolicyMobileApplicationPushLimitTFObjectTypes},
		"push_timeout":         types.ObjectType{AttrTypes: MFADevicePolicyTimePeriodTFObjectTypes},
	}

	MFADevicePolicyMobileApplicationAutoEnrolmentTFObjectTypes = map[string]attr.Type{
		"enabled": types.BoolType,
	}

	MFADevicePolicyMobileApplicationDeviceAuthorizationTFObjectTypes = map[string]attr.Type{
		"enabled":            types.BoolType,
		"extra_verification": types.StringType,
	}

	MFADevicePolicyMobileApplicationOtpTFObjectTypes = map[string]attr.Type{
		"enabled": types.BoolType,
	}

	MFADevicePolicyMobileApplicationPushTFObjectTypes = map[string]attr.Type{
		"enabled": types.BoolType,
	}

	MFADevicePolicyMobileApplicationPushLimitTFObjectTypes = map[string]attr.Type{
		"count":         types.Int32Type,
		"lock_duration": types.ObjectType{AttrTypes: MFADevicePolicyTimePeriodTFObjectTypes},
		"time_period":   types.ObjectType{AttrTypes: MFADevicePolicyTimePeriodTFObjectTypes},
	}

	MFADevicePolicyMobileOtpTFObjectTypes = map[string]attr.Type{
		"failure": types.ObjectType{AttrTypes: MFADevicePolicyMobileOtpFailureTFObjectTypes},
	}

	MFADevicePolicyMobileOtpFailureTFObjectTypes = map[string]attr.Type{
		"count":     types.Int32Type,
		"cool_down": types.ObjectType{AttrTypes: MFADevicePolicyTimePeriodTFObjectTypes},
	}

	MFADevicePolicyTotpTFObjectTypes = map[string]attr.Type{
		"enabled":                        types.BoolType,
		"otp":                            types.ObjectType{AttrTypes: MFADevicePolicyTotpOtpTFObjectTypes},
		"pairing_disabled":               types.BoolType,
		"prompt_for_nickname_on_pairing": types.BoolType,
		"uri_parameters":                 types.MapType{ElemType: types.StringType},
	}

	MFADevicePolicyTotpOtpTFObjectTypes = map[string]attr.Type{
		"failure": types.ObjectType{AttrTypes: MFADevicePolicyTotpOtpFailureTFObjectTypes},
	}

	MFADevicePolicyTotpOtpFailureTFObjectTypes = map[string]attr.Type{
		"count":     types.Int32Type,
		"cool_down": types.ObjectType{AttrTypes: MFADevicePolicyTimePeriodTFObjectTypes},
	}

	MFADevicePolicyFido2TFObjectTypes = map[string]attr.Type{
		"enabled":                        types.BoolType,
		"fido2_policy_id":                pingonetypes.ResourceIDType{},
		"pairing_disabled":               types.BoolType,
		"prompt_for_nickname_on_pairing": types.BoolType,
	}
)
View Source
var (
	MFASettingsLockoutTFObjectTypes = map[string]attr.Type{
		"failure_count":    types.Int32Type,
		"duration_seconds": types.Int32Type,
	}

	MFASettingsPairingTFObjectTypes = map[string]attr.Type{
		"max_allowed_devices": types.Int32Type,
		"pairing_key_format":  types.StringType,
	}

	MFASettingsPhoneExtensionsTFObjectTypes = map[string]attr.Type{
		"enabled": types.BoolType,
	}

	MFASettingsUsersTFObjectTypes = map[string]attr.Type{
		"mfa_enabled": types.BoolType,
	}
)

Functions

func DataSources added in v0.9.0

func DataSources() []func() datasource.DataSource

func NewApplicationPushCredentialResource added in v0.17.0

func NewApplicationPushCredentialResource() resource.Resource

New Object

func NewFIDO2PolicyResource added in v0.17.0

func NewFIDO2PolicyResource() resource.Resource

New Object

func NewMFADevicePoliciesDataSource added in v1.0.0

func NewMFADevicePoliciesDataSource() datasource.DataSource

New Object

func NewMFADevicePolicyResource added in v1.0.0

func NewMFADevicePolicyResource() resource.Resource

New Object

func NewMFASettingsResource added in v1.0.0

func NewMFASettingsResource() resource.Resource

New Object

func ResourceMFAPolicy added in v0.6.0

func ResourceMFAPolicy() *schema.Resource

func Resources added in v0.9.0

func Resources() []func() resource.Resource

Types

type ApplicationPushCredentialResource added in v0.17.0

type ApplicationPushCredentialResource serviceClientType

Types

func (*ApplicationPushCredentialResource) Configure added in v0.17.0

func (*ApplicationPushCredentialResource) Create added in v0.17.0

func (*ApplicationPushCredentialResource) Delete added in v0.17.0

func (*ApplicationPushCredentialResource) ImportState added in v0.17.0

func (*ApplicationPushCredentialResource) Metadata added in v0.17.0

Metadata

func (*ApplicationPushCredentialResource) Read added in v0.17.0

func (*ApplicationPushCredentialResource) Schema added in v0.17.0

Schema.

func (*ApplicationPushCredentialResource) Update added in v0.17.0

func (*ApplicationPushCredentialResource) UpgradeState added in v1.0.0

type FIDO2PolicyBackupEligibilityResourceModel added in v0.17.0

type FIDO2PolicyBackupEligibilityResourceModel struct {
	Allow                       types.Bool `tfsdk:"allow"`
	EnforceDuringAuthentication types.Bool `tfsdk:"enforce_during_authentication"`
}

type FIDO2PolicyMdsAuthenticatorsRequirementsResourceModel added in v0.17.0

type FIDO2PolicyMdsAuthenticatorsRequirementsResourceModel struct {
	AllowedAuthenticatorIDs     types.Set    `tfsdk:"allowed_authenticator_ids"`
	EnforceDuringAuthentication types.Bool   `tfsdk:"enforce_during_authentication"`
	Option                      types.String `tfsdk:"option"`
}

type FIDO2PolicyResource added in v0.17.0

type FIDO2PolicyResource serviceClientType

Types

func (*FIDO2PolicyResource) Configure added in v0.17.0

func (*FIDO2PolicyResource) Create added in v0.17.0

func (*FIDO2PolicyResource) Delete added in v0.17.0

func (*FIDO2PolicyResource) ImportState added in v0.17.0

func (*FIDO2PolicyResource) Metadata added in v0.17.0

Metadata

func (*FIDO2PolicyResource) Read added in v0.17.0

func (*FIDO2PolicyResource) Schema added in v0.17.0

func (*FIDO2PolicyResource) Update added in v0.17.0

type FIDO2PolicyResourceModel added in v0.17.0

type FIDO2PolicyResourceModel struct {
	Id                            pingonetypes.ResourceIDValue `tfsdk:"id"`
	EnvironmentId                 pingonetypes.ResourceIDValue `tfsdk:"environment_id"`
	Name                          types.String                 `tfsdk:"name"`
	Description                   types.String                 `tfsdk:"description"`
	Default                       types.Bool                   `tfsdk:"default"`
	AttestationRequirements       types.String                 `tfsdk:"attestation_requirements"`
	AuthenticatorAttachment       types.String                 `tfsdk:"authenticator_attachment"`
	BackupEligibility             types.Object                 `tfsdk:"backup_eligibility"`
	DeviceDisplayName             types.String                 `tfsdk:"device_display_name"`
	DiscoverableCredentials       types.String                 `tfsdk:"discoverable_credentials"`
	MdsAuthenticatorsRequirements types.Object                 `tfsdk:"mds_authenticators_requirements"`
	RelyingPartyId                types.String                 `tfsdk:"relying_party_id"`
	UserDisplayNameAttributes     types.Object                 `tfsdk:"user_display_name_attributes"`
	UserVerification              types.Object                 `tfsdk:"user_verification"`
}

type FIDO2PolicyUserDisplayNameAttributesAttributesResourceModel added in v0.17.0

type FIDO2PolicyUserDisplayNameAttributesAttributesResourceModel struct {
	Name          types.String `tfsdk:"name"`
	SubAttributes types.List   `tfsdk:"sub_attributes"`
}

type FIDO2PolicyUserDisplayNameAttributesAttributesSubAttributesResourceModel added in v0.17.0

type FIDO2PolicyUserDisplayNameAttributesAttributesSubAttributesResourceModel struct {
	Name types.String `tfsdk:"name"`
}

type FIDO2PolicyUserDisplayNameAttributesResourceModel added in v0.17.0

type FIDO2PolicyUserDisplayNameAttributesResourceModel struct {
	Attributes types.List `tfsdk:"attributes"`
}

type FIDO2PolicyUserVerificationResourceModel added in v0.17.0

type FIDO2PolicyUserVerificationResourceModel struct {
	EnforceDuringAuthentication types.Bool   `tfsdk:"enforce_during_authentication"`
	Option                      types.String `tfsdk:"option"`
}

type MFADevicePoliciesDataSource added in v1.0.0

type MFADevicePoliciesDataSource serviceClientType

Types

func (*MFADevicePoliciesDataSource) Configure added in v1.0.0

func (*MFADevicePoliciesDataSource) Metadata added in v1.0.0

Metadata

func (*MFADevicePoliciesDataSource) Read added in v1.0.0

func (*MFADevicePoliciesDataSource) Schema added in v1.0.0

Schema

type MFADevicePoliciesDataSourceModel added in v1.0.0

type MFADevicePoliciesDataSourceModel struct {
	Id            pingonetypes.ResourceIDValue `tfsdk:"id"`
	EnvironmentId pingonetypes.ResourceIDValue `tfsdk:"environment_id"`
	Ids           types.List                   `tfsdk:"ids"`
}

type MFADevicePolicyAuthenticationResourceModel added in v1.0.0

type MFADevicePolicyAuthenticationResourceModel struct {
	DeviceSelection types.String `tfsdk:"device_selection"`
}

type MFADevicePolicyCooldownResourceModel added in v1.0.0

type MFADevicePolicyCooldownResourceModel MFADevicePolicyTimePeriodResourceModel

type MFADevicePolicyEmailResourceModel added in v1.0.0

type MFADevicePolicyEmailResourceModel MFADevicePolicyOfflineDeviceResourceModel

type MFADevicePolicyEnabledResourceModel added in v1.0.0

type MFADevicePolicyEnabledResourceModel struct {
	Enabled types.Bool `tfsdk:"enabled"`
}

type MFADevicePolicyFailureResourceModel added in v1.0.0

type MFADevicePolicyFailureResourceModel struct {
	CoolDown types.Object `tfsdk:"cool_down"`
	Count    types.Int32  `tfsdk:"count"`
}

type MFADevicePolicyFido2ResourceModel added in v1.0.0

type MFADevicePolicyFido2ResourceModel struct {
	Enabled                    types.Bool                   `tfsdk:"enabled"`
	Fido2PolicyId              pingonetypes.ResourceIDValue `tfsdk:"fido2_policy_id"`
	PairingDisabled            types.Bool                   `tfsdk:"pairing_disabled"`
	PromptForNicknameOnPairing types.Bool                   `tfsdk:"prompt_for_nickname_on_pairing"`
}

type MFADevicePolicyLockDurationResourceModel added in v1.0.0

type MFADevicePolicyLockDurationResourceModel MFADevicePolicyTimePeriodResourceModel

type MFADevicePolicyMobileApplicationAutoEnrolmentResourceModel added in v1.0.0

type MFADevicePolicyMobileApplicationAutoEnrolmentResourceModel struct {
	Enabled types.Bool `tfsdk:"enabled"`
}

type MFADevicePolicyMobileApplicationDeviceAuthorizationResourceModel added in v1.0.0

type MFADevicePolicyMobileApplicationDeviceAuthorizationResourceModel struct {
	Enabled           types.Bool   `tfsdk:"enabled"`
	ExtraVerification types.String `tfsdk:"extra_verification"`
}

type MFADevicePolicyMobileApplicationOtpResourceModel added in v1.0.0

type MFADevicePolicyMobileApplicationOtpResourceModel MFADevicePolicyEnabledResourceModel

type MFADevicePolicyMobileApplicationPushResourceModel added in v1.0.0

type MFADevicePolicyMobileApplicationPushResourceModel MFADevicePolicyEnabledResourceModel

type MFADevicePolicyMobileApplicationResourceModel added in v1.0.0

type MFADevicePolicyMobileApplicationResourceModel struct {
	AutoEnrolment       types.Object `tfsdk:"auto_enrollment"`
	DeviceAuthorization types.Object `tfsdk:"device_authorization"`
	IntegrityDetection  types.String `tfsdk:"integrity_detection"`
	Otp                 types.Object `tfsdk:"otp"`
	PairingDisabled     types.Bool   `tfsdk:"pairing_disabled"`
	PairingKeyLifetime  types.Object `tfsdk:"pairing_key_lifetime"`
	Push                types.Object `tfsdk:"push"`
	PushLimit           types.Object `tfsdk:"push_limit"`
	PushTimeout         types.Object `tfsdk:"push_timeout"`
}

type MFADevicePolicyMobileResourceModel added in v1.0.0

type MFADevicePolicyMobileResourceModel struct {
	Applications               types.Map    `tfsdk:"applications"`
	Enabled                    types.Bool   `tfsdk:"enabled"`
	Otp                        types.Object `tfsdk:"otp"`
	PromptForNicknameOnPairing types.Bool   `tfsdk:"prompt_for_nickname_on_pairing"`
}

type MFADevicePolicyOfflineDeviceOtpResourceModel added in v1.0.0

type MFADevicePolicyOfflineDeviceOtpResourceModel struct {
	Failure   types.Object `tfsdk:"failure"`
	Lifetime  types.Object `tfsdk:"lifetime"`
	OtpLength types.Int32  `tfsdk:"otp_length"`
}

type MFADevicePolicyOfflineDeviceResourceModel added in v1.0.0

type MFADevicePolicyOfflineDeviceResourceModel struct {
	Enabled                    types.Bool   `tfsdk:"enabled"`
	Otp                        types.Object `tfsdk:"otp"`
	PairingDisabled            types.Bool   `tfsdk:"pairing_disabled"`
	PromptForNicknameOnPairing types.Bool   `tfsdk:"prompt_for_nickname_on_pairing"`
}

type MFADevicePolicyOtpResourceModel added in v1.0.0

type MFADevicePolicyOtpResourceModel struct {
	Failure types.Object `tfsdk:"failure"`
}

type MFADevicePolicyPairingKeyLifetimeResourceModel added in v1.0.0

type MFADevicePolicyPairingKeyLifetimeResourceModel MFADevicePolicyTimePeriodResourceModel

type MFADevicePolicyPushLimitResourceModel added in v1.0.0

type MFADevicePolicyPushLimitResourceModel struct {
	Count        types.Int32  `tfsdk:"count"`
	LockDuration types.Object `tfsdk:"lock_duration"`
	TimePeriod   types.Object `tfsdk:"time_period"`
}

type MFADevicePolicyPushTimeoutResourceModel added in v1.0.0

type MFADevicePolicyPushTimeoutResourceModel MFADevicePolicyTimePeriodResourceModel

type MFADevicePolicyResource added in v1.0.0

type MFADevicePolicyResource serviceClientType

Types

func (*MFADevicePolicyResource) Configure added in v1.0.0

func (*MFADevicePolicyResource) Create added in v1.0.0

func (*MFADevicePolicyResource) Delete added in v1.0.0

func (*MFADevicePolicyResource) ImportState added in v1.0.0

func (*MFADevicePolicyResource) Metadata added in v1.0.0

Metadata

func (*MFADevicePolicyResource) Read added in v1.0.0

func (*MFADevicePolicyResource) Schema added in v1.0.0

func (*MFADevicePolicyResource) Update added in v1.0.0

type MFADevicePolicyResourceModel added in v1.0.0

type MFADevicePolicyResourceModel struct {
	Id                    pingonetypes.ResourceIDValue `tfsdk:"id"`
	EnvironmentId         pingonetypes.ResourceIDValue `tfsdk:"environment_id"`
	Name                  types.String                 `tfsdk:"name"`
	Authentication        types.Object                 `tfsdk:"authentication"`
	NewDeviceNotification types.String                 `tfsdk:"new_device_notification"`
	Default               types.Bool                   `tfsdk:"default"`
	Sms                   types.Object                 `tfsdk:"sms"`
	Voice                 types.Object                 `tfsdk:"voice"`
	Email                 types.Object                 `tfsdk:"email"`
	Mobile                types.Object                 `tfsdk:"mobile"`
	Totp                  types.Object                 `tfsdk:"totp"`
	Fido2                 types.Object                 `tfsdk:"fido2"`
}

type MFADevicePolicySmsResourceModel added in v1.0.0

type MFADevicePolicySmsResourceModel MFADevicePolicyOfflineDeviceResourceModel

type MFADevicePolicyTimePeriodResourceModel added in v1.0.0

type MFADevicePolicyTimePeriodResourceModel struct {
	Duration types.Int32  `tfsdk:"duration"`
	TimeUnit types.String `tfsdk:"time_unit"`
}

type MFADevicePolicyTotpResourceModel added in v1.0.0

type MFADevicePolicyTotpResourceModel struct {
	Enabled                    types.Bool   `tfsdk:"enabled"`
	Otp                        types.Object `tfsdk:"otp"`
	PairingDisabled            types.Bool   `tfsdk:"pairing_disabled"`
	PromptForNicknameOnPairing types.Bool   `tfsdk:"prompt_for_nickname_on_pairing"`
	UriParameters              types.Map    `tfsdk:"uri_parameters"`
}

type MFADevicePolicyVoiceResourceModel added in v1.0.0

type MFADevicePolicyVoiceResourceModel MFADevicePolicyOfflineDeviceResourceModel

type MFASettingsResource added in v1.0.0

type MFASettingsResource serviceClientType

Types

func (*MFASettingsResource) Configure added in v1.0.0

func (*MFASettingsResource) Create added in v1.0.0

func (*MFASettingsResource) Delete added in v1.0.0

func (*MFASettingsResource) ImportState added in v1.0.0

func (*MFASettingsResource) Metadata added in v1.0.0

Metadata

func (*MFASettingsResource) Read added in v1.0.0

func (*MFASettingsResource) Schema added in v1.0.0

func (*MFASettingsResource) Update added in v1.0.0

func (*MFASettingsResource) UpgradeState added in v1.0.0

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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