Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add brand id to okta_domain #1685

Merged
merged 1 commit into from
Sep 5, 2023

Conversation

duytiennguyen-okta
Copy link
Contributor

add brand id to okta_domain

@@ -1,3 +1,4 @@
resource "okta_domain" "test" {
name = "testAcc-replace_with_uuid.example.com"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The endpoint no longer allow domain to be named testAcc-randomnumber.example.com

if err != nil {
return diag.Errorf("failed to update domain: %v", err)
}
_, err = getOktaV3ClientFromMetadata(m).CustomizationApi.DeleteBrand(ctx, domain.GetBrandId()).Execute()
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because whenever a custom domain is created, a brand will be created along with that custom domain. If the customer is using another brand right away, it should be deleted

@duytiennguyen-okta duytiennguyen-okta marked this pull request as ready for review September 5, 2023 15:40
@duytiennguyen-okta duytiennguyen-okta merged commit 00f27b3 into master Sep 5, 2023
1 check passed
@monde monde mentioned this pull request Sep 7, 2023
@monde monde deleted the OKTA_631380-add-brand_id-to-okta-domain branch October 9, 2023 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants