Open tgoodsell-tempus opened 1 year ago
FYI: I did look and I can confirm we're on a "Classic" tenant: Version 2023.08.2 C
, however this error is being observed on our "preview" tenant which is on OIE: Version 2023.08.2 E
.
I can confirm we got the same error on both our Classic and OIE tenants.
@tgoodsell-tempus This error came straight out of the API and not the result of terraform. The error message is descriptive of the problem. Can you change your config to match watch is describe in the error?
Upon further investigation, it seems that the API has removed okta.appGrants.manage and okta.appGrants.read from acceptable scopes
https://developer.okta.com/docs/release-notes/2023/#oauth-2-0-grant-scopes-added
Yes I'm rather confused by that, as the API reference alludes to that being the required grant for performing operations on the grants
endpoint of a given app.
See: https://developer.okta.com/docs/api/openapi/okta-management/management/tag/ApplicationGrants/
The following screenshot shows it's possible to set this using the Admin UI. So is this rather a bug with the management API instead?
OKTA internal reference https://oktainc.atlassian.net/browse/OKTA-651882
Community Note
Terraform Version
1.5.5
Affected Resource(s)
okta_app_oauth_api_scope
Terraform Configuration Files
Debug Output
--->
Panic Output
Expected Behavior
Okta OAuth 2.0 Grant Scopes should be available for use: https://developer.okta.com/docs/release-notes/2023/#oauth-2-0-grant-scopes-added
Can this be done in the Admin UI?
I don't know
Can this be done in the actual API call?
I don't know
Actual Behavior
Error during
terraform plan
stating grant is not valid.Steps to Reproduce
Use configuration above
Important Factoids
References