Terraform: getting "payment required" for auth0_branding

Hi,

I am still on the free plan and as I just checked the pricing page on the website, the “Branded forms (Login, Signup, etc.) and 1 Custom Domain*” are still listed as available for this plan. But at the same time, I am getting:

Error: 402 Payment Required: A paid subscription is required for this feature.

│ with module.auth0.auth0_branding.branding,
│ on …/…/modules/auth0/main.tf line 486, in resource “auth0_branding” “branding”:
│ 486: resource “auth0_branding” “branding” {

At the same time, I am able to change the Universal Login branding e.g. primary color and company logo URL from the management console e.g. https://manage.auth0.com/dashboard.

So this sounds like a management API problem that wrongly expects a paid subscription?

Hi @maxim_naidenov,

Welcome back to the Auth0 Community and thank you for your post.

Even though you are on a free membership you are able to configure the default settings of the Universal Login, but if you are trying to customize the Signup, Login or other prompts available from the Dashboard in the Advanced Options - Custom text section this error will pop up

Response from Management API "This feature is not available for your plan. To create or modify prompt templates, please upgrade your account.

This also aligns with our Pricing page.

I hope this helped.
Best regards,
Remus

Hi @remus.ivan,

The terraform resource auth0_branding is responsible for the “basic” branding e.g. logo, primary and background colors. These are exactly the things that I can change over the web console. But with terraform configuration, it fails with the mentioned error so sounds like an issue in the terraform provider or the API this provider uses.

Hi @maxim_naidenov,

Thank for your reply.

I understand your possible confusion in this scenario, since our documentation does not clearly state the difference between using the Terraform provider or the Dashboard directly, but this is currently in progress for proper handling.

If you are using the GET /api/v2/branding/templates/universal-login endpoint I will have to let you know that this one is only available for paid customers. Instead you can still use the branding theme endpoint GET /api/v2/branding/themes/{themeId}.

You can check out this documentation for more insights about the Auth0 Terraform provider for the branding theme.

I hope this better helps with your concern.
Thanks,
Remus

Hi @remus.ivan,

So I checked the management API and IMHO the terraform resource ‘auth0_branding’ corresponds to the /api/v2/branding API. And this API sounds pretty basic e.g. to be covered by the free plan. And as mentioned, I am able to change those parameters from the Web console as expected. But the terraform provider is having those problems with auth0_branding. Maybe someone from the terraform dev team could check this?

Hi @maxim_naidenov,

I understand your point of view, but the auth0_branding resource uses the GET /api/v2/branding/templates/universal-login endpoint. This endpoint helps you configure the logo, primary or background colors from the Universal Login, but many other features as well, such as the ability to customize login page templates which is not covered by a free membership, so that is why this particular endpoint is only available for paid customers. In order to still be able to customize the logo or themes within your UL through the Management API you can use the /themes/{themeId} endpoint, specifically designed to work when only having a free plan as well. So this is not an issue that has to be addressed from the terraform provider’s end.

I hope this helps clarify the situation.
Thanks,
Remus

Hi @remus.ivan,

Thank you for the detailed explanation. I have just one more question: Is there a Terraform resource that I can use to customize the logo and basic colors of the Universal Login while still using the free plan?

Regards,
Maxim

Hi @maxim_naidenov,

You can use this resource: auth0_branding_theme within the Terraform Provider. It will allow you to set the logo URL in the widget object

widget {
    header_text_alignment = "center"
    logo_height           = 55
    logo_position         = "center"
    logo_url              = "https://google.com/logo.png"
    social_buttons_layout = "top"
  }

as well al other basic color options, with more details that can found under the documentation for auth0_branding_theme in Terraform.

This resource is associated with this api endpoint: /api/v2/branding/themes/{themeId}, available for free customers.

Thanks,
Remus

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.