# Retrieve application "client-metadata" on the Universal Login screen

**URL:** <https://community.auth0.com/t/retrieve-application-client-metadata-on-the-universal-login-screen/53470>\
**Category:** Get Help\
**Tags:** client-metadata, auth0, universal-login\
**Created:** [November 18, 2020, 7:50pm UTC](https://community.auth0.com/t/retrieve-application-client-metadata-on-the-universal-login-screen/53470 "2020-11-18T19:50:00Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![betmix-matt](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/betmix-matt/32/12878_2.png) [@betmix-matt](https://community.auth0.com/u/betmix-matt)\
**Post date:** [November 18, 2020, 7:50pm UTC](https://community.auth0.com/t/retrieve-application-client-metadata-on-the-universal-login-screen/53470/1 "2020-11-18T19:50:00Z")

</div>

I have a requirement to vary the look and feel (and some options) on the Universal Login page based on the application the user is logging in to. I am able to do this in Rules by reading the “client\_metadata” associated with the application. However, on the Universal Login page this information doesn’t seem to be available

This prior topic is related to the same issue:

> [@How to fetch client\_metadata on lock screen?](https://community.auth0.com/t/how-to-fetch-client-metadata-on-lock-screen/23589):
>
> I have added few key value pairs in “Application Metadata” (client\_metadata) under advance settings of one of my application. Now I tried to fetch those key value pairs on lock screen but I couldn’t find any way. The @@config@@ object on lock screen doesn’t keep that information. I know there is an other option to make web request to auth0 management api and fetch client detail but I don’t want to make an extra call. So is there any way to fetch that info? Also if this is not possible then what …

However the solution provided is impossible. The universal login page is a web page on the client side. You cannot call the Auth0 management APIs from the client side. That would require a client secret which should NEVER be exposed client side.

How can I vary the look and feel of the Auth0 Universal Login page based on the application being logged in to?

---

<div class="post-metadata">

**Author:** ![maleaheleanormzhw](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/maleaheleanormzhw/32/12776_2.png) [@maleaheleanormzhw](https://community.auth0.com/u/maleaheleanormzhw)\
**Post date:** [November 19, 2020, 4:19am UTC](https://community.auth0.com/t/retrieve-application-client-metadata-on-the-universal-login-screen/53470/2 "2020-11-19T04:19:04Z")

</div>

I have exactly the same problem. Anyone got a suggestion? This is quiet a common issue , please suggest me if you find any solution for it [PupilPath](https://www.pupilpath.us/)

---

<div class="post-metadata">

**Author:** ![fabry516](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/fabry516/32/20691_2.png) [@fabry516](https://community.auth0.com/u/fabry516)\
**Post date:** [November 19, 2020, 6:44pm UTC](https://community.auth0.com/t/retrieve-application-client-metadata-on-the-universal-login-screen/53470/3 "2020-11-19T18:44:45Z")

</div>

I have exactly the same problem, please help us.

---

<div class="post-metadata">

**Author:** ![FullStackFool](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/fullstackfool/32/25823_2.png) [@FullStackFool](https://community.auth0.com/u/FullStackFool)\
**Post date:** [March 22, 2021, 2:18pm UTC](https://community.auth0.com/t/retrieve-application-client-metadata-on-the-universal-login-screen/53470/4 "2021-03-22T14:18:28Z")

</div>

Same issue. Backup idea would be to host a small endpoint, or a json file on S3 or somewhere similar, that can map the clientID to the style settings. Then add a `fetch` call in the JS of the login pages.

---

<div class="post-metadata">

**Author:** ![betmix-matt](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/betmix-matt/32/12878_2.png) [@betmix-matt](https://community.auth0.com/u/betmix-matt)\
**Post date:** [April 12, 2021, 10:24pm UTC](https://community.auth0.com/t/retrieve-application-client-metadata-on-the-universal-login-screen/53470/5 "2021-04-12T22:24:17Z")

</div>

Yeah that could work @FullStackFool . I just hate the idea of having an entire piece of code and infrastructure for something like that.

Auth0, maybe if you’re concerned with exposing the client metadata automatically [i.e. that users could have put secrets in it], you could add a configuration option at the tenant and/or client level that’s “Expose Client Metadata to Login UI” or something of that nature so that people could opt in to do this and explicitly state that they’re ok with exposing this info (could even put a warning when they enable it).

---

<div class="post-metadata">

**Author:** ![FullStackFool](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/fullstackfool/32/25823_2.png) [@FullStackFool](https://community.auth0.com/u/FullStackFool)\
**Post date:** [April 13, 2021, 8:11am UTC](https://community.auth0.com/t/retrieve-application-client-metadata-on-the-universal-login-screen/53470/6 "2021-04-13T08:11:10Z")

</div>

Can I ask what kind of things you need to vary? Is it just stylistic changes?

---

<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:** [April 13, 2021, 9:38am UTC](https://community.auth0.com/t/retrieve-application-client-metadata-on-the-universal-login-screen/53470/7 "2021-04-13T09:38:17Z")

</div>

It would be great if you can add such feedback providing all the context here in our feedback category:

> **[Feedback](https://community.auth0.com/c/feedback/95)**
>
> Submit and vote on product feedback and feature requests.

---

<div class="post-metadata">

**Author:** ![betmix-matt](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/betmix-matt/32/12878_2.png) [@betmix-matt](https://community.auth0.com/u/betmix-matt)\
**Post date:** [April 13, 2021, 5:04pm UTC](https://community.auth0.com/t/retrieve-application-client-metadata-on-the-universal-login-screen/53470/8 "2021-04-13T17:04:59Z")

</div>

Some of my need is stylistic like showing a different color scheme depending on which app you’re logging in to.

But other parts of the need is to actually vary the functionality of the login process (i.e. some apps allow generic Auth0 sign up, some do not because they handle it themselves outside of the login flow). I can enforce these through Rules and Custom Database functions, but I have no way to get the data on the actual client side to vary the experience.

Technically because the Client API supports a “custom\_login\_page”, I could partially do this but it means I have to manage multiple versions of the login page for the different configuration and a programmatic way to keep them up to date with source control and if I want to change those things, I have to change them all through the API. A very complex workflow that means I have to develop custom software to just vary the login page in any way between clients.

I’ll open up a Feedback topic so we can all vote and make suggestions on the solution to this need.

---

<div class="post-metadata">

**Author:** ![betmix-matt](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/betmix-matt/32/12878_2.png) [@betmix-matt](https://community.auth0.com/u/betmix-matt)\
**Post date:** [April 13, 2021, 5:35pm UTC](https://community.auth0.com/t/retrieve-application-client-metadata-on-the-universal-login-screen/53470/9 "2021-04-13T17:35:25Z")

</div>

I have created the following Feedback topic:

> [@Feature request: Provide method to retrieve application “client-metadata” on the Universal Login screen](https://community.auth0.com/t/feature-request-provide-method-to-retrieve-application-client-metadata-on-the-universal-login-screen/61033):
>
> I have a need to vary the look and feel and functionality of the Universal Login Page based on which client the user is logging in to. For the look and feel example, I want to show a different color scheme for some clients than others and may even include an additional disclaimer based on which app you’re logging in to. I may even want to put some kind of temporary prominent notification on the page but only for specific clients. For the functionality example, I want to change the additional …

I think we can probably close/lock this issue

---

<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:** [April 15, 2021, 12:36pm UTC](https://community.auth0.com/t/retrieve-application-client-metadata-on-the-universal-login-screen/53470/10 "2021-04-15T12:36:14Z")

</div>

Gotchya! Thank you for doing that!

---

<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:** [April 15, 2021, 12:36pm UTC](https://community.auth0.com/t/retrieve-application-client-metadata-on-the-universal-login-screen/53470/11 "2021-04-15T12:36:17Z")

</div>


