# Customizing authentication error page

**URL:** <https://community.auth0.com/t/customizing-authentication-error-page/55667>\
**Category:** Get Help\
**Tags:** password-reset\
**Created:** [January 4, 2021, 2:51pm UTC](https://community.auth0.com/t/customizing-authentication-error-page/55667 "2021-01-04T14:51:22Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![tfzhang](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/tfzhang/32/25255_2.png) [@tfzhang](https://community.auth0.com/u/tfzhang)\
**Post date:** [January 4, 2021, 2:51pm UTC](https://community.auth0.com/t/customizing-authentication-error-page/55667/1 "2021-01-04T14:51:22Z")

</div>

Hello,

I’m trying to set up a customized UI for the authentication error a user will receive when they try to access an expired reset password link. I know that in the dashboard (under tenant settings), you can set a URL that users will be redirected to instead of the generic authentication error page, but is there no way to customize the generic page at all?

---

<div class="post-metadata">

**Author:** ![jorgenrique](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jorgenrique/32/26652_2.png) [@jorgenrique](https://community.auth0.com/u/jorgenrique)\
**Post date:** [January 4, 2021, 4:55pm UTC](https://community.auth0.com/t/customizing-authentication-error-page/55667/2 "2021-01-04T16:55:17Z")

</div>

Hi @tfzhang,  
The generic error page will display the following information if you have configured the associated fields in your [Tenant Settings](https://manage.auth0.com/#/tenant/):

| Field | Description |
| --- | --- |
| Friendly Name | Name of your company |
| Logo URL | URL of your company logo |
| Support Email | Email address of your company’s support team |
| Support URL | URL of your company’s support page |

Please find further reference in the [Generic Error Page](https://auth0.com/docs/universal-login/error-pages) documentation page.

Best regards,

Jorge Nicolau

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [January 5, 2021, 12:15pm UTC](https://community.auth0.com/t/customizing-authentication-error-page/55667/3 "2021-01-05T12:15:01Z")

</div>

Thanks for helping on this one @jorgenrique!

---

<div class="post-metadata">

**Author:** ![tfzhang](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/tfzhang/32/25255_2.png) [@tfzhang](https://community.auth0.com/u/tfzhang)\
**Post date:** [January 5, 2021, 3:49pm UTC](https://community.auth0.com/t/customizing-authentication-error-page/55667/4 "2021-01-05T15:49:11Z")

</div>

Thank you for the quick reply/solution. Can a user change the HTML/CSS on this error page or is that not possible?

---

<div class="post-metadata">

**Author:** ![jorgenrique](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jorgenrique/32/26652_2.png) [@jorgenrique](https://community.auth0.com/u/jorgenrique)\
**Post date:** [January 5, 2021, 4:21pm UTC](https://community.auth0.com/t/customizing-authentication-error-page/55667/5 "2021-01-05T16:21:26Z")

</div>

Hi @tfzhang,  
It’s possible but it’s a little trickier. By default when you choose a “Custom Error Page” in your tenant setting you must specify a URL in the Web Dashboard. Nevertheless, you can also change your [Custom Error Page](https://auth0.com/docs/universal-login/custom-error-pages) by using the [Management API](https://auth0.com/docs/api/management/v2/#!/Tenants/patch_settings) to update your settings.

This way you can specify a “html” instead of a “url”. So by using the API you can set a custom URL like this:

```
curl --request PATCH \
 --url 'https://YOUR_DOMAIN/api/v2/tenants/settings' \
 --header 'authorization: Bearer MGMT_API_ACCESS_TOKEN' \
 --header 'content-type: application/json' \
 --data '{"error_page": {"html": "", "show_log_link":false, "url": "http://www.example.com"}}'

```

If you want to specify HTML instead you can like this:

```
curl --request PATCH \
 --url https://login.auth0.com/api/v2/tenants/settings \
 --header 'authorization: Bearer MGMT_API_ACCESS_TOKEN' \
 --header 'content-type: application/json' \
 --data '{"error_page": {"html": "<h1>{{error | escape }} {{error_description | escape }} This error was generated {{'\''now'\'' | date: '\''%Y %h'\''}}.</h1>", "show_log_link": false, "url": ""}}'

```

I know it’s not the best way to use HTML, but this is the way.  
I hope it helps!

Regards,

Jorge Nicolau

---

<div class="post-metadata">

**Author:** ![tfzhang](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/tfzhang/32/25255_2.png) [@tfzhang](https://community.auth0.com/u/tfzhang)\
**Post date:** [January 5, 2021, 5:39pm UTC](https://community.auth0.com/t/customizing-authentication-error-page/55667/6 "2021-01-05T17:39:53Z")

</div>

Thank you for the response. I changed the error page HTML before but the authentication/generic error is still returned after trying to access an expired reset password link.

I believe changing the URL for the custom error page does work to change the page that the user sees after trying to access an expired reset password link, but wondering if we can have the user instead see the HTML that I set through the management API?

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [January 20, 2021, 5:39pm UTC](https://community.auth0.com/t/customizing-authentication-error-page/55667/7 "2021-01-20T17:39:57Z")

</div>

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