Skip to content

Commit

Permalink
NEW : support branding configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
sgonzalezoyuela committed Jul 19, 2023
1 parent 94e5fb3 commit 24cfe73
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
10 changes: 10 additions & 0 deletions iamtf/resource_iamtf_federated_connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ func spSamlSchema() *schema.Schema {
Computed: true,
Optional: true,
},
"account_linkage_name": {
Type: schema.TypeString,
Description: "account linkage name, only valid when account_linkage is set to CUSTOM",
Optional: true,
},
"message_ttl": {
Type: schema.TypeInt,
Optional: true,
Expand All @@ -62,6 +67,11 @@ func spSamlSchema() *schema.Schema {
Computed: true,
Optional: true,
},
"identiyt_mapping_name": {
Type: schema.TypeString,
Description: "identity mapping name, only valid when identity_mapping is set to CUSTOM",
Optional: true,
},
"sign_requests": {
Type: schema.TypeBool,
Optional: true,
Expand Down
10 changes: 5 additions & 5 deletions iamtf/resource_iamtf_identity_appliance.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,8 @@ func buildIdentityAppliance(d *schema.ResourceData) (api.IdentityApplianceDefini

// Branding
a.UserDashboardBranding = &api.UserDashboardBrandingDTO{
Name: PtrSchemaStr(d, "branding"),
Id: PtrSchemaStr(d, "branding"),
//Name: PtrSchemaStr(d, "branding"),
}

// TODO : support properties/security external configuration
Expand All @@ -204,10 +205,9 @@ func buildIdentityApplianceResource(idaName string, d *schema.ResourceData, iam
_ = d.Set("namespace", cli.StrDeref(iam.Namespace))
_ = d.Set("description", cli.StrDeref(iam.Description))

if iam.GetUserDashboardBranding().Name != nil {
b := cli.StrDeref(iam.GetUserDashboardBranding().Name)
_ = d.Set("branding", b)
}
b := cli.StrDeref(iam.GetUserDashboardBranding().Id)
_ = d.Set("branding", b)

_ = setNonPrimitives(d, map[string]interface{}{
"bundles": convertStringSetToInterface(iam.GetRequiredBundles())})

Expand Down

0 comments on commit 24cfe73

Please sign in to comment.