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

Unable to import exported tenant.yaml with captcha_widget_theme in themes.color #897

Open
6 tasks done
hasanyc opened this issue Mar 12, 2024 · 2 comments
Open
6 tasks done
Labels

Comments

@hasanyc
Copy link

hasanyc commented Mar 12, 2024

Checklist

  • I have looked into the README and have not found a suitable solution or answer.
  • I have looked into the documentation and have not found a suitable solution or answer.
  • I have searched the issues and have not found a suitable solution or answer.
  • I have upgraded to the latest version of this tool and the issue still persists.
  • I have searched the Auth0 Community forums and have not found a suitable solution or answer.
  • I agree to the terms within the Auth0 Code of Conduct.

Description

While importing the exported tenant.yaml using following command:
a0deploy import --config_file=config.json --input_file local/tenant.yaml

I am getting this:
`themes:

  • borders:
    button_border_weight: 1
    buttons_style: rounded
    button_border_radius: 3
    input_border_weight: 1
    inputs_style: rounded
    input_border_radius: 3
    widget_corner_radius: 5
    widget_border_weight: 0
    show_widget_shadow: true
    colors:
    captcha_widget_theme: auto
    primary_button: '#635dff'
    primary_button_label: '#ffffff'
    secondary_button_border: '#c9cace'
    secondary_button_label: '#1e212a'
    base_focus_color: '#635dff'
    base_hover_color: '#000000'
    links_focused_components: '#635dff'
    header: '#1e212a'
    body_text: '#1e212a'
    widget_background: '#ffffff'
    widget_border: '#c9cace'
    input_labels_placeholders: '#65676e'
    input_filled_text: '#000000'
    input_border: '#c9cace'
    input_background: '#ffffff'
    icons: '#65676e'
    error: '#d03c38'
    success: '#13a688'
    captcha_widget_theme: auto
    displayName: Unnamed Theme`

Error a0deploy showing:

2024-03-12T15:16:44.618Z - error: Problem running command import 2024-03-12T15:16:44.622Z - error: Schema validation failed loading [ { "keyword": "additionalProperties", "dataPath": ".themes[0].colors", "schemaPath": "#/properties/themes/items/properties/colors/additionalProperties", "params": { "additionalProperty": "captcha_widget_theme" }, "message": "should NOT have additional properties" } ]

Expectation

The system should allow the user to import to another tenant successfully without facing any captcha_widget_theme error in response.

Reproduction

GIVEN user able to export successfully with the theme
WHEN the user tries to import into another tenant with a theme
THEN the user gets the "Schema validation failed loading" error

Deploy CLI version

7.21.0

Node version

21.2.0

@hasanyc hasanyc added the bug label Mar 12, 2024
@sugan-ras
Copy link

Also experiencing the same issue, removeing captcha_widget_theme from tenant.ymal seems to fix the issue temporarily

@hasanyc
Copy link
Author

hasanyc commented Mar 28, 2024

@sugan-ras If you writing automation for it then try this out (temporary solution as you said):
`# For CICD

  • sed -i '/captcha_widget_theme/d' output/tenant.yaml

For Mac

  • sed -i '' '/captcha_widget_theme/d' output/tenant.yaml`

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

No branches or pull requests

2 participants