Skip to content
This repository has been archived by the owner on Mar 8, 2022. It is now read-only.

grant scopes empty array sent as null leading to 400 response #94

Closed
jasonkuhrt opened this issue Mar 18, 2019 · 2 comments
Closed

grant scopes empty array sent as null leading to 400 response #94

jasonkuhrt opened this issue Mar 18, 2019 · 2 comments
Labels

Comments

@jasonkuhrt
Copy link

resource "auth0_client_grant" "telephone_client_grant" {
  client_id = "${auth0_client.telephone.id}"
  audience  = "${auth0_resource_server.dialogue_api.identifier}"
  scope     = []
}
Error: Error applying plan:

1 error(s) occurred:

* module.auth0-infra.auth0_client_grant.telephone_client_grant: 1 error(s) occurred:

* auth0_client_grant.telephone_client_grant: 400 Bad Request: Payload validation error: 'Expected type array but found type null' on property scope.

It seems that the changes in go-auth0/auth0#29 were not enough 🤔

@oderby
Copy link

oderby commented Mar 19, 2019

I can also confirm - seeing the exact same behavior here as well, both when creating (POST) or updating (PATCH) client_grants.

Workaround of putting in a bogus scope string (suggested at #50 (comment)) works for me for now.

laurentdutheil pushed a commit to laurentdutheil/terraform-provider-auth0 that referenced this issue Aug 27, 2019
@github-actions
Copy link

This issue is stale because it has been open 30 days with no activity.
Stale issues will be closed after 5 days if no action is taken. If you
think this issue should not be closed, remove the stale label.

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

No branches or pull requests

2 participants