FusionAuth / terraform-provider-fusionauth

FusionAuth Terraform Provider
https://registry.terraform.io/providers/FusionAuth/fusionauth/latest
Apache License 2.0
36 stars 55 forks source link

Missing theme.templates.oauth2Consent property for plugin 0.1.106 and server 1.51.0 #279

Open sachams opened 5 months ago

sachams commented 5 months ago

After hitting the same problem as described in #271 , I tried 0.1.106 of the plugin with 1.51.0 server, and hit the following error:

 Error: unexpected status code: 400(Bad Request) Errors: theme.defaultMessages: You must specify all the required keys in the [theme.defaultMessages] property. It is missing these keys: customize. You may optionally use these default values:
│ customize=Customize theme.templates.oauth2Consent: You must specify the [theme.templates.oauth2Consent] property. During a POST request this field may be omitted if you provide a sourceThemeId.
sachams commented 5 months ago

I can confirm that the same terraform config works with provider 0.1.105 and server 1.49.2

zaalbarxx commented 5 months ago

I believe you could just create a new template for this and add it to theme configuration under oauth2Consent prop, maybe having default OAuth2 consent template as base.