Documentation ¶
Overview ¶
Copyright © 2024. Citrix Systems, Inc.
Copyright © 2024. Citrix Systems, Inc.
Copyright © 2024. Citrix Systems, Inc.
Copyright © 2024. Citrix Systems, Inc.
Copyright © 2024. Citrix Systems, Inc.
Copyright © 2024. Citrix Systems, Inc.
Copyright © 2024. Citrix Systems, Inc.
Copyright © 2024. Citrix Systems, Inc.
Copyright © 2024. Citrix Systems, Inc.
Index ¶
- func NewOktaIdentityProviderDataSource() datasource.DataSource
- func NewOktaIdentityProviderResource() resource.Resource
- func NewSamlIdentityProviderDataSource() datasource.DataSource
- func NewSamlIdentityProviderResource() resource.Resource
- type OktaIdentityProviderDataSource
- func (d *OktaIdentityProviderDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *OktaIdentityProviderDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, ...)
- func (d *OktaIdentityProviderDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *OktaIdentityProviderDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
- type OktaIdentityProviderDataSourceModel
- type OktaIdentityProviderResource
- func (r *OktaIdentityProviderResource) Configure(_ context.Context, req resource.ConfigureRequest, ...)
- func (r *OktaIdentityProviderResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *OktaIdentityProviderResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *OktaIdentityProviderResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *OktaIdentityProviderResource) Metadata(_ context.Context, req resource.MetadataRequest, ...)
- func (r *OktaIdentityProviderResource) ModifyPlan(ctx context.Context, req resource.ModifyPlanRequest, ...)
- func (r *OktaIdentityProviderResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *OktaIdentityProviderResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *OktaIdentityProviderResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- func (r *OktaIdentityProviderResource) ValidateConfig(ctx context.Context, req resource.ValidateConfigRequest, ...)
- type OktaIdentityProviderResourceModel
- type SamlAttributeNameMappings
- type SamlAttributeNameMappingsDataSourceModel
- type SamlIdentityProviderDataSource
- func (d *SamlIdentityProviderDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *SamlIdentityProviderDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, ...)
- func (d *SamlIdentityProviderDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *SamlIdentityProviderDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
- type SamlIdentityProviderDataSourceModel
- func (SamlIdentityProviderDataSourceModel) GetResourceAttributes() map[string]schema.Attribute
- func (SamlIdentityProviderDataSourceModel) GetSchema() schema.Schema
- func (r SamlIdentityProviderDataSourceModel) RefreshPropertyValues(ctx context.Context, diagnostics *diag.Diagnostics, ...) SamlIdentityProviderDataSourceModel
- type SamlIdentityProviderResource
- func (r *SamlIdentityProviderResource) Configure(_ context.Context, req resource.ConfigureRequest, ...)
- func (r *SamlIdentityProviderResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *SamlIdentityProviderResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *SamlIdentityProviderResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *SamlIdentityProviderResource) Metadata(_ context.Context, req resource.MetadataRequest, ...)
- func (r *SamlIdentityProviderResource) ModifyPlan(ctx context.Context, req resource.ModifyPlanRequest, ...)
- func (r *SamlIdentityProviderResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *SamlIdentityProviderResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *SamlIdentityProviderResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- func (r *SamlIdentityProviderResource) ValidateConfig(ctx context.Context, req resource.ValidateConfigRequest, ...)
- type SamlIdentityProviderResourceModel
- func (SamlIdentityProviderResourceModel) GetAttributes() map[string]schema.Attribute
- func (SamlIdentityProviderResourceModel) GetSchema() schema.Schema
- func (r SamlIdentityProviderResourceModel) RefreshPropertyValues(ctx context.Context, diagnostics *diag.Diagnostics, ...) SamlIdentityProviderResourceModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewOktaIdentityProviderDataSource ¶
func NewOktaIdentityProviderDataSource() datasource.DataSource
func NewOktaIdentityProviderResource ¶
NewOktaIdentityProviderResource is a helper function to simplify the provider implementation.
func NewSamlIdentityProviderDataSource ¶
func NewSamlIdentityProviderDataSource() datasource.DataSource
func NewSamlIdentityProviderResource ¶
SamlIdentityProviderResource is a helper function to simplify the provider implementation.
Types ¶
type OktaIdentityProviderDataSource ¶
type OktaIdentityProviderDataSource struct {
// contains filtered or unexported fields
}
func (*OktaIdentityProviderDataSource) Configure ¶
func (d *OktaIdentityProviderDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*OktaIdentityProviderDataSource) Metadata ¶
func (d *OktaIdentityProviderDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*OktaIdentityProviderDataSource) Read ¶
func (d *OktaIdentityProviderDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*OktaIdentityProviderDataSource) Schema ¶
func (d *OktaIdentityProviderDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
type OktaIdentityProviderDataSourceModel ¶
type OktaIdentityProviderDataSourceModel struct { Id types.String `tfsdk:"id"` Name types.String `tfsdk:"name"` OktaDomain types.String `tfsdk:"okta_domain"` }
func (OktaIdentityProviderDataSourceModel) GetAttributes ¶
func (OktaIdentityProviderDataSourceModel) GetAttributes() map[string]schema.Attribute
func (OktaIdentityProviderDataSourceModel) GetSchema ¶
func (OktaIdentityProviderDataSourceModel) GetSchema() schema.Schema
func (OktaIdentityProviderDataSourceModel) RefreshPropertyValues ¶
func (r OktaIdentityProviderDataSourceModel) RefreshPropertyValues(oktaIdp *citrixcws.IdpStatusModel) OktaIdentityProviderDataSourceModel
type OktaIdentityProviderResource ¶
type OktaIdentityProviderResource struct {
// contains filtered or unexported fields
}
OktaIdentityProviderResource is the resource implementation.
func (*OktaIdentityProviderResource) Configure ¶
func (r *OktaIdentityProviderResource) Configure(_ context.Context, req resource.ConfigureRequest, _ *resource.ConfigureResponse)
Configure adds the provider configured client to the resource.
func (*OktaIdentityProviderResource) Create ¶
func (r *OktaIdentityProviderResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
Create creates the resource and sets the initial Terraform state.
func (*OktaIdentityProviderResource) Delete ¶
func (r *OktaIdentityProviderResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
Delete deletes the resource and removes the Terraform state on success.
func (*OktaIdentityProviderResource) ImportState ¶
func (r *OktaIdentityProviderResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*OktaIdentityProviderResource) Metadata ¶
func (r *OktaIdentityProviderResource) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
Metadata returns the resource type name.
func (*OktaIdentityProviderResource) ModifyPlan ¶
func (r *OktaIdentityProviderResource) ModifyPlan(ctx context.Context, req resource.ModifyPlanRequest, resp *resource.ModifyPlanResponse)
Resource Location is a cloud concept which is not supported for on-prem environment
func (*OktaIdentityProviderResource) Read ¶
func (r *OktaIdentityProviderResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
Read refreshes the Terraform state with the latest data.
func (*OktaIdentityProviderResource) Schema ¶
func (r *OktaIdentityProviderResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
Schema defines the schema for the resource.
func (*OktaIdentityProviderResource) Update ¶
func (r *OktaIdentityProviderResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Update updates the resource and sets the updated Terraform state on success.
func (*OktaIdentityProviderResource) ValidateConfig ¶
func (r *OktaIdentityProviderResource) ValidateConfig(ctx context.Context, req resource.ValidateConfigRequest, resp *resource.ValidateConfigResponse)
type OktaIdentityProviderResourceModel ¶
type OktaIdentityProviderResourceModel struct { Id types.String `tfsdk:"id"` Name types.String `tfsdk:"name"` OktaDomain types.String `tfsdk:"okta_domain"` OktaClientId types.String `tfsdk:"okta_client_id"` OktaClientSecret types.String `tfsdk:"okta_client_secret"` OktaApiToken types.String `tfsdk:"okta_api_token"` }
func (OktaIdentityProviderResourceModel) GetAttributes ¶
func (OktaIdentityProviderResourceModel) GetAttributes() map[string]schema.Attribute
func (OktaIdentityProviderResourceModel) GetSchema ¶
func (OktaIdentityProviderResourceModel) GetSchema() schema.Schema
func (OktaIdentityProviderResourceModel) RefreshPropertyValues ¶
func (r OktaIdentityProviderResourceModel) RefreshPropertyValues(oktaIdp *citrixcws.IdpStatusModel) OktaIdentityProviderResourceModel
type SamlAttributeNameMappings ¶
type SamlAttributeNameMappings struct { UserDisplayName types.String `tfsdk:"user_display_name"` // Optional, Computed, Defaults to `displayName` UserGivenName types.String `tfsdk:"user_given_name"` // Optional, Computed, Defaults to `givenName` UserFamilyName types.String `tfsdk:"user_family_name"` // Optional, Computed, Defaults to `familyName` SecurityIdentifier types.String `tfsdk:"security_identifier"` // Requires one of `security_identifier` or `user_principal_name`, defaults to `cip_sid` UserPrincipalName types.String `tfsdk:"user_principal_name"` // Requires one of `security_identifier` or `user_principal_name`, defaults to `cip_upn` Email types.String `tfsdk:"email"` // Optional, Computed, Defaults to `cip_email` AdObjectIdentifier types.String `tfsdk:"ad_object_identifier"` // Optional, Computed, Defaults to `cip_oid` AdForest types.String `tfsdk:"ad_forest"` // Optional, Computed, Defaults to `cip_forest` AdDomain types.String `tfsdk:"ad_domain"` // Optional, Computed, Defaults to `cip_domain` }
func (SamlAttributeNameMappings) GetAttributes ¶
func (SamlAttributeNameMappings) GetAttributes() map[string]schema.Attribute
func (SamlAttributeNameMappings) GetSchema ¶
func (SamlAttributeNameMappings) GetSchema() schema.SingleNestedAttribute
type SamlAttributeNameMappingsDataSourceModel ¶
type SamlAttributeNameMappingsDataSourceModel struct { UserDisplayName types.String `tfsdk:"user_display_name"` UserGivenName types.String `tfsdk:"user_given_name"` UserFamilyName types.String `tfsdk:"user_family_name"` SecurityIdentifier types.String `tfsdk:"security_identifier"` UserPrincipalName types.String `tfsdk:"user_principal_name"` Email types.String `tfsdk:"email"` AdObjectIdentifier types.String `tfsdk:"ad_object_identifier"` AdForest types.String `tfsdk:"ad_forest"` AdDomain types.String `tfsdk:"ad_domain"` }
func (SamlAttributeNameMappingsDataSourceModel) GetAttributes ¶
func (SamlAttributeNameMappingsDataSourceModel) GetAttributes() map[string]schema.Attribute
func (SamlAttributeNameMappingsDataSourceModel) GetSchema ¶
func (SamlAttributeNameMappingsDataSourceModel) GetSchema() schema.SingleNestedAttribute
type SamlIdentityProviderDataSource ¶
type SamlIdentityProviderDataSource struct {
// contains filtered or unexported fields
}
func (*SamlIdentityProviderDataSource) Configure ¶
func (d *SamlIdentityProviderDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*SamlIdentityProviderDataSource) Metadata ¶
func (d *SamlIdentityProviderDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*SamlIdentityProviderDataSource) Read ¶
func (d *SamlIdentityProviderDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*SamlIdentityProviderDataSource) Schema ¶
func (d *SamlIdentityProviderDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
type SamlIdentityProviderDataSourceModel ¶
type SamlIdentityProviderDataSourceModel struct { Id types.String `tfsdk:"id"` Name types.String `tfsdk:"name"` AuthDomainName types.String `tfsdk:"auth_domain_name"` EntityId types.String `tfsdk:"entity_id"` UseScopedEntityId types.Bool `tfsdk:"use_scoped_entity_id"` SignAuthRequest types.String `tfsdk:"sign_auth_request"` SingleSignOnServiceUrl types.String `tfsdk:"single_sign_on_service_url"` SingleSignOnServiceBinding types.String `tfsdk:"single_sign_on_service_binding"` SamlResponse types.String `tfsdk:"saml_response"` AuthenticationContext types.String `tfsdk:"authentication_context"` AuthenticationContextComparison types.String `tfsdk:"authentication_context_comparison"` LogoutUrl types.String `tfsdk:"logout_url"` SignLogoutRequest types.String `tfsdk:"sign_logout_request"` LogoutBinding types.String `tfsdk:"logout_binding"` AttributeNames types.Object `tfsdk:"attribute_names"` // SamlAttributeNameMappingsDataSourceModel CertCommonName types.String `tfsdk:"cert_common_name"` CertExpiration types.String `tfsdk:"cert_expiration"` ScopedEntityIdSuffix types.String `tfsdk:"scoped_entity_id_suffix"` }
func (SamlIdentityProviderDataSourceModel) GetResourceAttributes ¶
func (SamlIdentityProviderDataSourceModel) GetResourceAttributes() map[string]schema.Attribute
func (SamlIdentityProviderDataSourceModel) GetSchema ¶
func (SamlIdentityProviderDataSourceModel) GetSchema() schema.Schema
func (SamlIdentityProviderDataSourceModel) RefreshPropertyValues ¶
func (r SamlIdentityProviderDataSourceModel) RefreshPropertyValues(ctx context.Context, diagnostics *diag.Diagnostics, samlIdp *citrixcws.IdpStatusModel, samlConfig *citrixcws.SamlConfigModel) SamlIdentityProviderDataSourceModel
type SamlIdentityProviderResource ¶
type SamlIdentityProviderResource struct {
// contains filtered or unexported fields
}
SamlIdentityProviderResource is the resource implementation.
func (*SamlIdentityProviderResource) Configure ¶
func (r *SamlIdentityProviderResource) Configure(_ context.Context, req resource.ConfigureRequest, _ *resource.ConfigureResponse)
Configure adds the provider configured client to the resource.
func (*SamlIdentityProviderResource) Create ¶
func (r *SamlIdentityProviderResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
Create creates the resource and sets the initial Terraform state.
func (*SamlIdentityProviderResource) Delete ¶
func (r *SamlIdentityProviderResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
Delete deletes the resource and removes the Terraform state on success.
func (*SamlIdentityProviderResource) ImportState ¶
func (r *SamlIdentityProviderResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*SamlIdentityProviderResource) Metadata ¶
func (r *SamlIdentityProviderResource) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
Metadata returns the resource type name.
func (*SamlIdentityProviderResource) ModifyPlan ¶
func (r *SamlIdentityProviderResource) ModifyPlan(ctx context.Context, req resource.ModifyPlanRequest, resp *resource.ModifyPlanResponse)
Resource Location is a cloud concept which is not supported for on-prem environment
func (*SamlIdentityProviderResource) Read ¶
func (r *SamlIdentityProviderResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
Read refreshes the Terraform state with the latest data.
func (*SamlIdentityProviderResource) Schema ¶
func (r *SamlIdentityProviderResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
Schema defines the schema for the resource.
func (*SamlIdentityProviderResource) Update ¶
func (r *SamlIdentityProviderResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Update updates the resource and sets the updated Terraform state on success.
func (*SamlIdentityProviderResource) ValidateConfig ¶
func (r *SamlIdentityProviderResource) ValidateConfig(ctx context.Context, req resource.ValidateConfigRequest, resp *resource.ValidateConfigResponse)
type SamlIdentityProviderResourceModel ¶
type SamlIdentityProviderResourceModel struct { Id types.String `tfsdk:"id"` Name types.String `tfsdk:"name"` AuthDomainName types.String `tfsdk:"auth_domain_name"` EntityId types.String `tfsdk:"entity_id"` // Required UseScopedEntityId types.Bool `tfsdk:"use_scoped_entity_id"` // Optional, defaults to false SignAuthRequest types.String `tfsdk:"sign_auth_request"` // Required SingleSignOnServiceUrl types.String `tfsdk:"single_sign_on_service_url"` // Required SingleSignOnServiceBinding types.String `tfsdk:"single_sign_on_service_binding"` // Required SamlResponse types.String `tfsdk:"saml_response"` // Required CertFilePath types.String `tfsdk:"cert_file_path"` // Required AuthenticationContext types.String `tfsdk:"authentication_context"` // Required AuthenticationContextComparison types.String `tfsdk:"authentication_context_comparison"` // Required LogoutUrl types.String `tfsdk:"logout_url"` // Optional, defaults to empty string SignLogoutRequest types.String `tfsdk:"sign_logout_request"` // Required if LogoutUrl is provided LogoutBinding types.String `tfsdk:"logout_binding"` // Required if LogoutUrl is provided AttributeNames types.Object `tfsdk:"attribute_names"` // Required SamlAttributeNameMappings // Computed CertCommonName types.String `tfsdk:"cert_common_name"` CertExpiration types.String `tfsdk:"cert_expiration"` ScopedEntityIdSuffix types.String `tfsdk:"scoped_entity_id_suffix"` }
func (SamlIdentityProviderResourceModel) GetAttributes ¶
func (SamlIdentityProviderResourceModel) GetAttributes() map[string]schema.Attribute
func (SamlIdentityProviderResourceModel) GetSchema ¶
func (SamlIdentityProviderResourceModel) GetSchema() schema.Schema
func (SamlIdentityProviderResourceModel) RefreshPropertyValues ¶
func (r SamlIdentityProviderResourceModel) RefreshPropertyValues(ctx context.Context, diagnostics *diag.Diagnostics, samlIdp *citrixcws.IdpStatusModel, samlConfig *citrixcws.SamlConfigModel) SamlIdentityProviderResourceModel
Source Files ¶
- identity_provider_utils.go
- okta_identity_provider_data_source.go
- okta_identity_provider_data_source_model.go
- okta_identity_provider_resource.go
- okta_identity_provider_resource_model.go
- saml_identity_provider_data_source.go
- saml_identity_provider_data_source_model.go
- saml_identity_provider_resource.go
- saml_identity_provider_resource_model.go