# Guardian Hosted Page Logo Customisation by Subdomain

**URL:** <https://community.auth0.com/t/guardian-hosted-page-logo-customisation-by-subdomain/20461>\
**Category:** Get Help\
**Tags:** guardian, login\
**Created:** [January 24, 2019, 5:21am UTC](https://community.auth0.com/t/guardian-hosted-page-logo-customisation-by-subdomain/20461 "2019-01-24T05:21:54Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![james.cullen](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/james.cullen/32/10325_2.png) [@james.cullen](https://community.auth0.com/u/james.cullen)\
**Post date:** [January 24, 2019, 5:21am UTC](https://community.auth0.com/t/guardian-hosted-page-logo-customisation-by-subdomain/20461/1 "2019-01-24T05:21:54Z")

</div>

Hi,

I’m a bit unclear on this. Is it possible to determine the origin of a login request so the logo on the Guardian hosted page can be customised based on the subdomain?

Eg. [whitelabel1.mycompany.com](http://whitelabel1.mycompany.com) will have its own logo, while  
[whitelabel2.mycompany.com](http://whitelabel2.mycompany.com) will have a different logo

---

<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 24, 2019, 2:44pm UTC](https://community.auth0.com/t/guardian-hosted-page-logo-customisation-by-subdomain/20461/2 "2019-01-24T14:44:37Z")

</div>

Hey @james.cullen!

Good question and usecase actually! Let me do some research and get back to you with what I find!

---

<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 24, 2019, 3:42pm UTC](https://community.auth0.com/t/guardian-hosted-page-logo-customisation-by-subdomain/20461/4 "2019-01-24T15:42:45Z")

</div>

Looking at our docs on customising the logo, there’s only info about setting the one you want:

> **[Customize MFA with Classic Universal Login](https://auth0.com/docs/secure/multi-factor-authentication/customize-mfa/mfa-classic-experience)**
>
> Learn how to customize the MFA page when using the Classic Universal Login Experience.

It’s unlikely that it will be possible to distinguish the subdomain but let me confirm it with our product team!

---

<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 24, 2019, 4:44pm UTC](https://community.auth0.com/t/guardian-hosted-page-logo-customisation-by-subdomain/20461/5 "2019-01-24T16:44:54Z")

</div>

Discussed it with a few of co-workers and it seems like there is no way to adjust the logo based on the subdomain. I highly encourage you to report it as feedback to our product team as a feature request as it would be really helpful in some cases.

Here’s our feedback site:

> **[Auth0: Secure access for everyone. But not just anyone.](https://auth0.com/feedback)**
>
> Rapidly integrate authentication and authorization for web, mobile, and legacy applications so you can focus on your core business.

Thanks a lot for that!

---

<div class="post-metadata">

**Author:** ![andres.aguiar](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/andres.aguiar/32/7718_2.png) [@andres.aguiar](https://community.auth0.com/u/andres.aguiar)\
**Post date:** [January 31, 2019, 6:20pm UTC](https://community.auth0.com/t/guardian-hosted-page-logo-customisation-by-subdomain/20461/6 "2019-01-31T18:20:08Z")

</div>

Hi James,

Will the same users be able to log-in to each of those white labeled apps, or are you going to have a user database for each app?

Thanks,

Andres

---

<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:** [February 15, 2019, 6:20pm UTC](https://community.auth0.com/t/guardian-hosted-page-logo-customisation-by-subdomain/20461/7 "2019-02-15T18:20:09Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![adam.evans](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/adam.evans/32/14601_2.png) [@adam.evans](https://community.auth0.com/u/adam.evans)\
**Post date:** [October 21, 2020, 4:46pm UTC](https://community.auth0.com/t/guardian-hosted-page-logo-customisation-by-subdomain/20461/8 "2020-10-21T16:46:26Z")

</div>

Hi James,

I am not sure if this is still a requirement, but I was looking for something else and I came across your question. it is not exactly what you ask, but I have devised a way in which to identify which client (application) the request came from and add a custom logo in in.

This is achieved by opening the editor for the Multi-factor Authentication (Universal Login section \ Multi-factor Authentication tab) and add the following between `<script>` and `(function() {...}`:

`var clientid = getClientId();  
if (clientid === “\<client\_Id\>”) {  
iconUrl = “”;  
} else {  
iconUrl = " ";  
};

function getClientId() {  
var regex = new RegExp(‘[?&]state(=([^&#]\*)|&|#|$)’),  
results = regex.exec(window.location.href);  
if (!results) return null;  
if (!results[2]) return ‘’;

var decodedState = window.atob(results[2]).split(/[\s,]+/);

if (!decodedState[3]) return ‘’;  
return decodedState[3];  
}

You will now be able to specify branding based on the `clientId`.

---

<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:** [October 21, 2020, 5:46pm UTC](https://community.auth0.com/t/guardian-hosted-page-logo-customisation-by-subdomain/20461/9 "2020-10-21T17:46:27Z")

</div>

Thanks for sharing that @adam.evans!
