-
Notifications
You must be signed in to change notification settings - Fork 214
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
okta_org_metadata
data source outputs null organization
url value, and has default org url as value for alternate
where custom url is expected
#1804
Comments
OKTA internal reference https://oktainc.atlassian.net/browse/OKTA-665607 |
@stmyers I confirmed the bug and fixed it in #1810 -
I don't have a custom domain to experiment with but it appears if you have a custom domain like
|
@stmyers can you curl the well known endpoint on your custom domain and let me know if you do indeed see an |
I get identical output when I curl either URL $ curl -sS https://login.myorg.com/.well-known/okta-organization | jq .
{
"id": "123",
"cell": "123",
"_links": {
"organization": {
"href": "https://myorg.okta.com"
},
"alternate": {
"href": "https://login.myorg.com"
}
},
"pipeline": "idx",
"settings": {
"analyticsCollectionEnabled": false,
"bugReportingEnabled": false,
"omEnabled": false,
"pssoEnabled": false,
"desktopMFAEnabled": false
}
}
$ curl -sS https://myorg.okta.com/.well-known/okta-organization | jq .
{
"id": "123",
"cell": "123",
"_links": {
"organization": {
"href": "https://myorg.okta.com"
},
"alternate": {
"href": "https://login.myorg.com"
}
},
"pipeline": "idx",
"settings": {
"analyticsCollectionEnabled": false,
"bugReportingEnabled": false,
"omEnabled": false,
"pssoEnabled": false,
"desktopMFAEnabled": false
}
}
I've tried this in the past and it didn't pass validation. I will try testing again. |
@stmyers Let me know what you think: I set up a custom domain on one of my test orgs. Given the PR #1810 and your config data "okta_org_metadata" "this" {}
output "test" {
value = data.okta_org_metadata.this.domains
} On an org with custom domain I get this output
On an org without custom domain I get this output
I also see the this on a curl to the org with the custom domain, just like you are seeing, so my reading of the Okta source code was a little off (and I should have just set up a custom domain in the first place):
|
Community Note
Terraform Version
Affected Resource(s)
okta_org_metadata
(data resource)Terraform Configuration Files
Expected Behavior
Expected output
Can this be done in the Admin UI?
Can this be done in the actual API call?
Yes - when I go to
https://mydomain.okta.com/.well-known/okta-organization
I see expected valuesActual Behavior
Steps to Reproduce
See config files
terraform plan
Important Factoids
References
The text was updated successfully, but these errors were encountered: