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

Error: at least "user_whitelist" or "group_whitelist" should be provided when using 'implicit' in "grant_type_whitelist" #347

Closed
chrusty opened this issue Feb 24, 2021 · 1 comment · Fixed by #348
Assignees
Labels

Comments

@chrusty
Copy link

chrusty commented Feb 24, 2021

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform Version

1.12.26

Affected Resource(s)

  • okta_auth_server_policy_rule

Terraform Configuration Files

resource "okta_auth_server_policy_rule" "tsem" {
  auth_server_id       = okta_auth_server.tsem.id
  policy_id            = okta_auth_server_policy.tsem.id
  status               = "ACTIVE"
  name                 = var.app_name
  priority             = 1
  grant_type_whitelist = ["client_credentials", "implicit", "authorization_code"]
  group_whitelist      = [okta_group.app_tsem.id]
  scope_whitelist      = ["*"]
}

Debug Output

Panic Output

Expected Behavior

I'd hope this would provision a server policy rule

Actual Behavior

Error: at least "user_whitelist" or "group_whitelist" should be provided when using 'implicit' in "grant_type_whitelist"

Steps to Reproduce

  1. terraform apply

Important Factoids

I can get past this:

  • temporarily remove "implicit" from the grant_type_whitelist
  • terraform apply
  • add "implicit" back to the grant_type_whitelist
  • terraform apply

This works, but is obviously annoying, and is hard to automate.

References

  • #0000
@bogdanprodan-okta
Copy link
Contributor

Hi @chrusty! Thanks for submitting this issue! The problem is in the resource validation. I'll create a corresponding PR to fix this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants