Open jeffreymlewis opened 1 year ago
To my knowledge, the content that is acceptable and/or required in app_settings_json
is defined by the author of the preconfigured_app
(OIN app), in this case snowflake
I'm not sure how the Terraform provider could account for this without the Upstream API adding some sort of new functionality.
e.g the Upstream Okta API creates a new endpoint that returns the app_settings_json
schema for a given preconfigured_app
Ah I see what you mean. Not sure how you could solve that issue, short of letting each OIN provider update the terraform documentation (which probably isn't feasible).
For the record, I discovered what I needed for the Snowflake app, by creating an app integration in the console, importing it into terraform, then dumping the config using terraform state pull
.
For the record, I discovered what I needed for the Snowflake app, by creating an app integration in the console, importing it into terraform, then dumping the config using terraform state pull.
I've adopted a similar workflow for OIN apps, I use an Okta trail account instead to avoid using my production account(s)
I've raised an Okta idea about this - https://ideas.okta.com/app/#/case/189232
Some nerdsniped sleuthing later, it appears that this endpoint gives some of the data required
oinmanager.okta.com/api/v1/catalog/integrations/<preconfigured_app_name>
I think this endpoint might be what we need, but I think its only internal facing, perhaps its been replaced by the above APIs Β―\(γ)/Β―
example.okta.com/api/internal/app/catalogue/v2
@jeffreymlewis Thank you for logging this issue! We are working on making the schemas of the OIN apps public. However, there are 7,000+ apps in the Okta Integration Network, so this will take some time. π Currently we are focused on our top apps. Please stay tuned as we make more progress in this area.
OKTA internal reference https://oktainc.atlassian.net/browse/OKTA-669851
Community Note
Description
Please update documentation for terraform resource
okta_app_saml
to include the required "subDomain" field when using "pre-configured" apps. (I'm not sure if all pre-configured apps need this, but the "snowflake" app definitely does.)New or Affected Resource(s)
Potential Terraform Configuration
I tried to create an Okta application using
preconfigured_app
as shown below.This resulted in the following error.
Adding the following to my okta_app_saml resource resolved the issue. This is not documented anywhere that I could find. I recommended updating the documentation for this terraform resource, maybe to include an example setting the
subDomain
field.References
https://registry.terraform.io/providers/okta/okta/latest/docs/resources/app_saml