Hi Team,
I are currently working on customizing the login prompts. Specifically, we need to update the “Title” field on the login-password screen to dynamically include the user’s first name.
For example: “Welcome back to David”
I have tried using different syntaxes to achieve this, but nothing seems to be working. Tried with syntaxes (2. {{firstname}}
3. {{username}}
4. ${user.email}
)
Can we reference the first name attribute dynamically on the login-password screen? if so how to do it?
Request your response on this
Thanks
Hi @chaitrk
Welcome to the Auth0 Community!
Unfortunately, the list of variables is quite limited in order to customize the Universal Login prompts. This list can be seen here.
| Variable |
Description |
| ${clientName} |
Auth0 Application Name |
| ${connectionName} |
Connection Name (e.g. Google) |
| ${tenantName} |
Auth0 Tenant name |
| ${organizationName} |
Name of the user’s organization if the user is authenticating in the context of an Organization |
| ${companyName} |
Auth0 Tenant name, or Organization name if the user is authenticating in the context of an Organization |
| ${userName} |
Name of the logged user |
| ${email} |
Email of the logged user |
| ${appName} |
Name of the custom Guardian Push application |
Otherwise, you have the option to customize the templates. You can read more about that in our documentation. When customizing templates, you have access to user information such as user.family_name or user.given_name.
If you have any other questions, feel free to let me know!
Kind Regards,
Nik
Thanks for the response, But i a customizing the text for the login - password screen in the identifier first approach, for that though i have tried with username and email variables ( ${email},${userName}) for the title , its not picking any of user details.
Hi again!
I was able to reproduce the mentioned behaviour on my tenant. As mentioned by the documentation:
Some screens have variables in the text that are replaced at runtime based on contextual information. As different variables are available for each screen, it is not guaranteed that a given variable will work anywhere other than their original screen.
This means that the behaviour would be expected and the mentioned variables are not available through the specific login-psassword screen. I would recommend to submit a post on our Feedback page regarding making the variables available through all screens and prompts. In the meantime, I will confirm with our engineer if this behaviour is indeed expected.
If you have any other questions, feel free to let me know!
Kind Regards,
Nik
I have confirmed this internally and it appears that those variables would require the user to be already authenticated and they are not available on the login-password prompt.
As I have advised above, a suitable alternative to this would be to customize the page templates.
Let me know if I can help anything else!
Kind Regards,
Nik